|
arsa
2.7
|
Go to the source code of this file.
Classes | |
| struct | SDLTest_TestCaseReference |
| struct | SDLTest_TestSuiteReference |
Macros | |
| #define | TEST_ENABLED 1 |
| #define | TEST_DISABLED 0 |
| #define | TEST_ABORTED -1 |
| #define | TEST_STARTED 0 |
| #define | TEST_COMPLETED 1 |
| #define | TEST_SKIPPED 2 |
| #define | TEST_RESULT_PASSED 0 |
| #define | TEST_RESULT_FAILED 1 |
| #define | TEST_RESULT_NO_ASSERT 2 |
| #define | TEST_RESULT_SKIPPED 3 |
| #define | TEST_RESULT_SETUP_FAILURE 4 |
Typedefs | |
| typedef void(* | SDLTest_TestCaseSetUpFp) (void *arg) |
| typedef int(* | SDLTest_TestCaseFp) (void *arg) |
| typedef void(* | SDLTest_TestCaseTearDownFp) (void *arg) |
| typedef struct SDLTest_TestCaseReference | SDLTest_TestCaseReference |
| typedef struct SDLTest_TestSuiteReference | SDLTest_TestSuiteReference |
Functions | |
| char * | SDLTest_GenerateRunSeed (const int length) |
| Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z). More... | |
| 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. More... | |
Include file for SDL test framework.
This code is a part of the SDL2_test library, not the main SDL library.
Definition in file SDL_test_harness.h.
| #define TEST_ABORTED -1 |
Definition at line 51 of file SDL_test_harness.h.
| #define TEST_COMPLETED 1 |
Definition at line 53 of file SDL_test_harness.h.
| #define TEST_DISABLED 0 |
Definition at line 48 of file SDL_test_harness.h.
| #define TEST_ENABLED 1 |
Definition at line 47 of file SDL_test_harness.h.
| #define TEST_RESULT_FAILED 1 |
Definition at line 58 of file SDL_test_harness.h.
| #define TEST_RESULT_NO_ASSERT 2 |
Definition at line 59 of file SDL_test_harness.h.
| #define TEST_RESULT_PASSED 0 |
Definition at line 57 of file SDL_test_harness.h.
| #define TEST_RESULT_SETUP_FAILURE 4 |
Definition at line 61 of file SDL_test_harness.h.
| #define TEST_RESULT_SKIPPED 3 |
Definition at line 60 of file SDL_test_harness.h.
| #define TEST_SKIPPED 2 |
Definition at line 54 of file SDL_test_harness.h.
| #define TEST_STARTED 0 |
Definition at line 52 of file SDL_test_harness.h.
| typedef int(* SDLTest_TestCaseFp) (void *arg) |
Definition at line 67 of file SDL_test_harness.h.
| typedef struct SDLTest_TestCaseReference SDLTest_TestCaseReference |
Holds information about a single test case.
Definition at line 64 of file SDL_test_harness.h.
Definition at line 70 of file SDL_test_harness.h.
| typedef struct SDLTest_TestSuiteReference SDLTest_TestSuiteReference |
Holds information about a test suite (multiple test cases).
| char* SDLTest_GenerateRunSeed | ( | const int | length | ) |
Generates a random run seed string for the harness. The generated seed will contain alphanumeric characters (0-9A-Z).
Note: The returned string needs to be deallocated by the caller.
| length | The length of the seed string to generate |
| 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.
| testSuites | Suites containing the test case. |
| userRunSeed | Custom run seed provided by user, or NULL to autogenerate one. |
| userExecKey | Custom execution key provided by user, or 0 to autogenerate one. |
| filter | Filter specification. NULL disables. Case sensitive. |
| testIterations | Number of iterations to run each test case. |
1.8.15