|
SDL Visual Test
|
Go to the source code of this file.
Data Structures | |
| union | SDLVisualTest_SUTOptionValue |
| struct | SDLVisualTest_Variation |
Macros | |
| #define | SDL_SUT_INTEGER_OPTION_TEST_STEPS 3 |
Typedefs | |
| typedef enum SDLVisualTest_VariatorType | SDLVisualTest_VariatorType |
| typedef union SDLVisualTest_SUTOptionValue | SDLVisualTest_SUTOptionValue |
| typedef struct SDLVisualTest_Variation | SDLVisualTest_Variation |
Enumerations | |
| enum | SDLVisualTest_VariatorType { SDL_VARIATOR_NONE = 0, SDL_VARIATOR_EXHAUSTIVE, SDL_VARIATOR_RANDOM } |
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) |
Header for common functionality used by variators.
| #define SDL_SUT_INTEGER_OPTION_TEST_STEPS 3 |
The number of variations one integer option would generate
| typedef union SDLVisualTest_SUTOptionValue SDLVisualTest_SUTOptionValue |
One possible value for a command line option to the SUT.
| typedef struct SDLVisualTest_Variation SDLVisualTest_Variation |
Represents a valid combination of parameters that can be passed to the SUT. The ordering of the values here is the same as the ordering of the options in the SDLVisualTest_SUTConfig object for this variation.
| typedef enum SDLVisualTest_VariatorType SDLVisualTest_VariatorType |
enum for indicating the type of variator being used
enum for indicating the type of variator being used
| 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