-
- /**
- * Macro used to generate a main() for a test to be compiled
- * on hosted platform.
- */
- #define TEST_MAIN(module) \
- int main(void) \
- { \
- if (module##_testSetup() != 0) \
- return 1; \
- if (module##_testRun() != 0) \
- return 2; \
- if (module##_testTearDown() != 0) \
- return 3; \
- return 0; \
- }
-
- /** This macro will include the specified file only in test-mode */
- #define TEST_ONLY(file) PP_STRINGIZE(file)
-
-#else /* !_TEST */