SDL Visual Test
|
Go to the source code of this file.
Data Structures | |
struct | SDLVisualTest_SUTIntRange |
struct | SDLVisualTest_SUTOption |
struct | SDLVisualTest_SUTConfig |
Macros | |
#define | MAX_SUTOPTION_NAME_LEN 100 |
#define | MAX_SUTOPTION_CATEGORY_LEN 40 |
#define | MAX_SUTOPTION_ENUMVAL_LEN 40 |
#define | MAX_SUTOPTION_LINE_LENGTH 256 |
Typedefs | |
typedef struct SDLVisualTest_SUTIntRange | SDLVisualTest_SUTIntRange |
typedef struct SDLVisualTest_SUTOption | SDLVisualTest_SUTOption |
typedef struct SDLVisualTest_SUTConfig | SDLVisualTest_SUTConfig |
Enumerations | |
enum | SDLVisualTest_SUTOptionType { SDL_SUT_OPTIONTYPE_STRING = 0, SDL_SUT_OPTIONTYPE_INT, SDL_SUT_OPTIONTYPE_ENUM, SDL_SUT_OPTIONTYPE_BOOL } |
Functions | |
int | SDLVisualTest_ParseSUTConfig (char *file, SDLVisualTest_SUTConfig *config) |
void | SDLVisualTest_FreeSUTConfig (SDLVisualTest_SUTConfig *config) |
Header for the parser for SUT config files.
#define MAX_SUTOPTION_CATEGORY_LEN 40 |
Maximum length of the name of a category of an SUT option
#define MAX_SUTOPTION_ENUMVAL_LEN 40 |
Maximum length of one enum value of an SUT option
#define MAX_SUTOPTION_LINE_LENGTH 256 |
Maximum length of a line in the paramters file
#define MAX_SUTOPTION_NAME_LEN 100 |
Maximum length of the name of an SUT option
typedef struct SDLVisualTest_SUTConfig SDLVisualTest_SUTConfig |
Struct to hold all the options to an SUT application.
typedef struct SDLVisualTest_SUTIntRange SDLVisualTest_SUTIntRange |
Represents the range of values an integer option can take.
typedef struct SDLVisualTest_SUTOption SDLVisualTest_SUTOption |
Struct that defines an option to be passed to the SUT.
Describes the different kinds of options to the SUT.
void SDLVisualTest_FreeSUTConfig | ( | SDLVisualTest_SUTConfig * | config) |
Free any resources associated with the config object pointed to by config
.
int SDLVisualTest_ParseSUTConfig | ( | char * | file, |
SDLVisualTest_SUTConfig * | config | ||
) |
Parses a configuration file that describes the command line options an SUT application will take and populates a SUT config object. All lines in the config file must be smaller than
file | Path to the configuration file. |
config | Pointer to an object that represents an SUT configuration. |