|
#define | XBT_TEST_SUITE(suite_name, suite_title) |
| Provide informations about the suite declared in this file. More...
|
|
#define | XBT_TEST_UNIT(name, func, title) |
| Declare a new test units (containing individual tests) More...
|
|
#define | xbt_test_add(...) |
| Declare that a new test begins (printf-like parameters, describing the test) More...
|
|
#define | xbt_test_fail(...) |
| Declare that the lastly started test failed (printf-like parameters, describing failure cause) More...
|
|
#define | xbt_test_assert(...) |
| The lastly started test is actually an assert. More...
|
|
#define | _xbt_test_assert_ARG1(cond) _xbt_test_assert_CHECK(cond, "%s", #cond) |
|
#define | _xbt_test_assert_ARGN(cond, ...) _xbt_test_assert_CHECK(cond, __VA_ARGS__) |
|
#define | _xbt_test_assert_CHECK(cond, ...) do { if (!(cond)) xbt_test_fail(__VA_ARGS__); } while (0) |
|
#define | xbt_test_log(...) |
| Report some details to help debugging when the test fails (shown only on failure) More...
|
|
|
xbt_test_suite_t | xbt_test_suite_new (const char *name, const char *fmt,...) |
| create test suite More...
|
|
xbt_test_suite_t | xbt_test_suite_by_name (const char *name, const char *fmt,...) |
| retrieve a testsuite from name, or create a new one More...
|
|
void | xbt_test_suite_dump (xbt_test_suite_t suite) |
|
void | xbt_test_suite_push (xbt_test_suite_t suite, const char *name, ts_test_cb_t func, const char *fmt,...) |
|
int | xbt_test_run (char *selection, int verbosity) |
|
void | xbt_test_dump (char *selection) |
|
void | xbt_test_exit (void) |
|
void | _xbt_test_add (const char *file, int line, const char *fmt,...) XBT_ATTRIB_PRINTF(3 |
|
void void | _xbt_test_fail (const char *file, int line, const char *fmt,...) XBT_ATTRIB_PRINTF(3 |
|
void void void | _xbt_test_log (const char *file, int line, const char *fmt,...) XBT_ATTRIB_PRINTF(3 |
|
void | xbt_test_exception (xbt_ex_t e) |
| Declare that the lastly started test failed because of the provided exception. More...
|
|
void | xbt_test_expect_failure (void) |
| Declare that the lastly started test was expected to fail (and actually failed) More...
|
|
void | xbt_test_skip (void) |
| Declare that the lastly started test should be skiped today. More...
|
|