test_all.c File Reference

#include "stdlib.h"
#include "stdio.h"
#include "CUnit/Basic.h"
#include "CUnit/Automated.h"
#include "CUnit/Console.h"
#include "CUnit/TestDB.h"
#include "test_generic.h"
#include "test_ui.h"
#include "test_routing.h"
#include "test_inventory.h"
#include "test_campaign.h"
#include "test_rma.h"
#include "test_parser.h"
Include dependency graph for test_all.c:

Go to the source code of this file.

Data Structures

struct  config_s

Defines

#define NUMBER_OF_TESTS   (sizeof(testSuites) / sizeof(*(testSuites)))

Typedefs

typedef int(* testSuite_t )(void)
typedef struct config_s config_t

Functions

static int fatalError (void)
void Sys_Init (void)
static void Test_List (void)
static void Test_RemovePSuite (CU_pSuite suite)
static int Test_RemoveSuite (const char *name)
static int Test_RemoveAllSuitesElse (const char *name)
static void Test_Parameters (const int argc, const char **argv)
int main (int argc, const char **argv)

Variables

static const testSuite_t testSuites []
static config_t config

Detailed Description

Definition in file test_all.c.


Define Documentation

#define NUMBER_OF_TESTS   (sizeof(testSuites) / sizeof(*(testSuites)))

Definition at line 53 of file test_all.c.

Referenced by main().


Typedef Documentation

typedef struct config_s config_t
typedef int(* testSuite_t)(void)

Definition at line 32 of file test_all.c.


Function Documentation

static int fatalError ( void   )  [inline, static]

Definition at line 55 of file test_all.c.

Referenced by main().

int main ( int  argc,
const char **  argv 
)

Setting up and running all tests. Returns a CUE_SUCCESS on successful running, another CUnit error code on failure.

Definition at line 188 of file test_all.c.

References config_s::automated, config_s::console, fatalError(), i, NUMBER_OF_TESTS, Test_Parameters(), and testSuites.

void Sys_Init ( void   ) 

Definition at line 62 of file test_all.c.

References CVAR_ARCHIVE, Cvar_Get(), CVAR_SERVERINFO, sys_affinity, sys_os, and sys_priority.

static void Test_List ( void   )  [static]

Definition at line 74 of file test_all.c.

References registry.

Referenced by Test_Parameters().

static void Test_Parameters ( const int  argc,
const char **  argv 
) [static]
static int Test_RemoveAllSuitesElse ( const char *  name  )  [static]

Definition at line 115 of file test_all.c.

References registry, and Test_RemovePSuite().

Referenced by Test_Parameters().

static void Test_RemovePSuite ( CU_pSuite  suite  )  [static]

Definition at line 88 of file test_all.c.

Referenced by Test_RemoveAllSuitesElse(), and Test_RemoveSuite().

static int Test_RemoveSuite ( const char *  name  )  [static]

Definition at line 98 of file test_all.c.

References registry, and Test_RemovePSuite().

Referenced by Test_Parameters().


Variable Documentation

config_t config [static]
const testSuite_t testSuites[] [static]

Generated by  doxygen 1.6.2