|
SDL Visual Test
|
Functions | |
| int | SDLVisualTest_NextValue (SDLVisualTest_SUTOptionValue *var, SDLVisualTest_SUTOption *opt) |
| int | SDLVisualTest_MakeStrFromVariation (SDLVisualTest_Variation *variation, SDLVisualTest_SUTConfig *config, char *buffer, int size) |
| int | SDLVisualTest_InitVariation (SDLVisualTest_Variation *variation, SDLVisualTest_SUTConfig *config) |
Source file for some common functionality used by variators.
| int SDLVisualTest_InitVariation | ( | SDLVisualTest_Variation * | variation, |
| SDLVisualTest_SUTConfig * | config | ||
| ) |
Initializes the variation using the following rules:
| int SDLVisualTest_MakeStrFromVariation | ( | SDLVisualTest_Variation * | variation, |
| SDLVisualTest_SUTConfig * | config, | ||
| char * | buffer, | ||
| int | size | ||
| ) |
Converts a variation object into a string of command line arguments.
| variation | Variation object to be converted. |
| config | Config object for the SUT. |
| buffer | Pointer to the buffer the arguments string will be copied into. |
| size | Size of the buffer. |
| int SDLVisualTest_NextValue | ( | SDLVisualTest_SUTOptionValue * | var, |
| SDLVisualTest_SUTOption * | opt | ||
| ) |
"Increments" the value of the option by one and returns the carry. We wrap around to the initial value on overflow which makes the carry one. For example: "incrementing" an SDL_FALSE option makes it SDL_TRUE with no carry, and "incrementing" an SDL_TRUE option makes it SDL_FALSE with carry one. For integers, a random value in the valid range for the option is used.
| var | Value of the option |
| opt | Object with metadata about the option |
1.8.4