SDL standard library

Dependents:   H261_encoder

Embed: (wiki syntax)

« Back to documentation index

SDL_test_harness.h File Reference

SDL_test_harness.h File Reference

Include file for SDL test framework. More...

Go to the source code of this file.

Data Structures

struct  SDLTest_TestCaseReference
 Holds information about a single test case. More...
struct  SDLTest_TestSuiteReference
 Holds information about a test suite (multiple test cases). More...

Typedefs

typedef struct
SDLTest_TestCaseReference 
SDLTest_TestCaseReference
 Holds information about a single test case.
typedef struct
SDLTest_TestSuiteReference 
SDLTest_TestSuiteReference
 Holds information about a test suite (multiple test cases).

Functions

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.

Detailed Description

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.


Typedef Documentation

Holds information about a single test case.

Holds information about a test suite (multiple test cases).


Function Documentation

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.

Parameters:
testSuitesSuites containing the test case.
userRunSeedCustom run seed provided by user, or NULL to autogenerate one.
userExecKeyCustom execution key provided by user, or 0 to autogenerate one.
filterFilter specification. NULL disables. Case sensitive.
testIterationsNumber of iterations to run each test case.
Returns:
Test run result; 0 when all tests passed, 1 if any tests failed.