20 #warning mbed-drivers/test_env.h is deprecated. Please use greentea-client/test_env.h instead. 29 extern const char* TEST_ENV_START;
30 extern const char* TEST_ENV_SUCCESS;
31 extern const char* TEST_ENV_FAILURE;
32 extern const char* TEST_ENV_MEASURE;
33 extern const char* TEST_ENV_END;
37 void notify_completion(
bool success);
38 bool notify_completion_str(
bool success,
char* buffer);
39 void notify_performance_coefficient(
const char* measurement_name,
const int value);
40 void notify_performance_coefficient(
const char* measurement_name,
const unsigned int value);
41 void notify_performance_coefficient(
const char* measurement_name,
const double value);
44 void notify_host_test_name(
const char *host_test);
45 void notify_timeout(
int timeout);
46 void notify_test_id(
const char *test_id);
47 void notify_test_description(
const char *description);
50 void notify_coverage_start(
const char *path);
51 void notify_coverage_end();
54 #define MBED_HOSTTEST_START(TESTID) notify_test_id(TESTID); notify_start() 55 #define MBED_HOSTTEST_SELECT(NAME) notify_host_test_name(#NAME) 56 #define MBED_HOSTTEST_TIMEOUT(SECONDS) notify_timeout(SECONDS) 57 #define MBED_HOSTTEST_DESCRIPTION(DESC) notify_test_description(#DESC) 58 #define MBED_HOSTTEST_RESULT(RESULT) notify_completion(RESULT) 59 #define MBED_HOSTTEST_ASSERT(cond) \ 62 printf("HOSTTEST ASSERTION FAILED: '%s' in %s, line %d\r\n", #cond, __FILE__, __LINE__); \ 63 notify_completion(false); \ 85 unsigned int testenv_randseed();
88 #define TESTENV_STRCMP(GIVEN,EXPECTED) (strcmp(GIVEN,EXPECTED) == 0) 91 #ifndef TEST_SUITE_TARGET_NAME 92 #define TEST_SUITE_TARGET_NAME "Unknown" 95 #ifndef TEST_SUITE_TEST_ID 96 #define TEST_SUITE_TEST_ID "Unknown" 99 #ifndef TEST_SUITE_UUID 100 #define TEST_SUITE_UUID "Unknown"