148 #ifndef INC_epicsUnitTest_H 149 #define INC_epicsUnitTest_H 154 #include "libComAPI.h" 164 LIBCOM_API
void testPlan(
int tests);
176 LIBCOM_API
int testOk(
int pass,
const char *fmt, ...)
182 #define testOk1(cond) testOk(cond, "%s", #cond) 189 LIBCOM_API
int testOkV(
int pass,
const char *fmt, va_list pvar);
195 LIBCOM_API
void testPass(
const char *fmt, ...)
201 LIBCOM_API
void testFail(const
char *fmt, ...)
214 LIBCOM_API
void testSkip(
int skip, const
char *why);
226 LIBCOM_API
void testAbort(const
char *fmt, ...)
227 EPICS_PRINTF_STYLE(1, 2);
234 LIBCOM_API
int testDiag(const
char *fmt, ...)
235 EPICS_PRINTF_STYLE(1, 2);
269 #define runTest(func) runTestFunc(#func, func) 272 #define testHarnessDone() testHarnessExit(0) LIBCOM_API void LIBCOM_API int LIBCOM_API int testDone(void)
Mark the end of testing.
LIBCOM_API void LIBCOM_API void testFail(const char *fmt,...) EPICS_PRINTF_STYLE(1
Failing test result with printf-style description.
LIBCOM_API void testAbort(const char *fmt,...) EPICS_PRINTF_STYLE(1
Stop testing, program cannot continue.
LIBCOM_API int testOk(int pass, const char *fmt,...) EPICS_PRINTF_STYLE(2
Test result with printf-style description.
LIBCOM_API int testImpreciseTiming(void)
Return non-zero in shared/oversubscribed testing envrionments.
LIBCOM_API void testHarness(void)
Initialize test harness.
LIBCOM_API void LIBCOM_API int testDiag(const char *fmt,...) EPICS_PRINTF_STYLE(1
Output additional diagnostics.
#define EPICS_PRINTF_STYLE(f, a)
LIBCOM_API void testPlan(int tests)
Declare the test plan, required.
LIBCOM_API void testTodoBegin(const char *why)
Mark the start of a group of tests that are expected to fail.
epics::pvData::PVStructurePtr dummy
LIBCOM_API void testPass(const char *fmt,...) EPICS_PRINTF_STYLE(1
Passing test result with printf-style description.
LIBCOM_API void testHarnessExit(void *dummy)
LIBCOM_API int testOkV(int pass, const char *fmt, va_list pvar)
Test result with var-args description.
Compiler specific declarations.
LIBCOM_API void testTodoEnd(void)
Mark the end of a failing test group.
LIBCOM_API void testSkip(int skip, const char *why)
Place-holders for tests that can't be run.
LIBCOM_API void runTestFunc(const char *name, TESTFUNC func)