36 #ifndef SDL_test_h_arness_h
37 #define SDL_test_h_arness_h
47 #define TEST_ENABLED 1
48 #define TEST_DISABLED 0
51 #define TEST_ABORTED -1
52 #define TEST_STARTED 0
53 #define TEST_COMPLETED 1
54 #define TEST_SKIPPED 2
57 #define TEST_RESULT_PASSED 0
58 #define TEST_RESULT_FAILED 1
59 #define TEST_RESULT_NO_ASSERT 2
60 #define TEST_RESULT_SKIPPED 3
61 #define TEST_RESULT_SETUP_FAILURE 4
64 typedef void (*SDLTest_TestCaseSetUpFp)(
void *arg);
67 typedef int (*SDLTest_TestCaseFp)(
void *arg);
70 typedef void (*SDLTest_TestCaseTearDownFp)(
void *arg);
77 SDLTest_TestCaseFp testCase;
93 SDLTest_TestCaseSetUpFp testSetUp;
97 SDLTest_TestCaseTearDownFp testTearDown;
char * SDLTest_GenerateRunSeed(const int length)
Generates a random run seed string for the harness. The generated seed will contain alphanumeric char...
int SDLTest_RunSuites(SDLTest_TestSuiteReference *testSuites[], const char *userRunSeed, Uint64 userExecKey, const char *filter, int testIterations)
Execute a test suite using the given run seed and execution key.
struct SDLTest_TestCaseReference SDLTest_TestCaseReference
struct SDLTest_TestSuiteReference SDLTest_TestSuiteReference
Definition: SDL_test_harness.h:75
Definition: SDL_test_harness.h:89