#include <string>
#include <vector>
Go to the source code of this file.
| #define lift_check |
( |
|
expr | ) |
|
Value:if (!(expr)) \
{ \
printf("\n check failed at %s:%u: expression \"%s\"", __FILE__, __LINE__, #expr); \
}
void debug_check_failure(void)
thread_local test * current_test
Definition at line 127 of file harness.h.
Value:printf("\n test failed at %s:%u", __FILE__, __LINE__); \
void debug_check_failure(void)
thread_local test * current_test
Definition at line 137 of file harness.h.
| #define TEST_FUN |
( |
|
test_name, |
|
|
|
entrypoint |
|
) |
| standalone_test test_name(entrypoint, #test_name, false) |
| #define TEST_FUN_CUDA |
( |
|
test_name, |
|
|
|
entrypoint |
|
) |
| standalone_test test_name(entrypoint, #test_name, true) |
| #define TEST_FUN_HD |
( |
|
test_name, |
|
|
|
entrypoint |
|
) |
| |
Value:standalone_test test_name##_host(entrypoint<host>, #test_name "_host", false); \
standalone_test test_name##_cuda(entrypoint<cuda>, #test_name "_cuda", true)
Definition at line 108 of file harness.h.
| #define TEST_REGISTER |
( |
|
test_name | ) |
test_list.push_back(&test_name) |
| #define TEST_REGISTER_HD |
( |
|
test_name | ) |
|
Value:
std::vector< test * > test_list
Definition at line 117 of file harness.h.
| void debug_check_failure |
( |
void |
| ) |
|
| void generate_test_list |
( |
void |
| ) |
|