#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"
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 |
Definition in file test_all.c.
#define NUMBER_OF_TESTS (sizeof(testSuites) / sizeof(*(testSuites))) |
Definition at line 53 of file test_all.c.
Referenced by main().
typedef int(* testSuite_t)(void) |
Definition at line 32 of file test_all.c.
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] |
static void Test_Parameters | ( | const int | argc, | |
const char ** | argv | |||
) | [static] |
Definition at line 138 of file test_all.c.
References config_s::automated, config_s::console, i, name, Test_List(), Test_RemoveAllSuitesElse(), and Test_RemoveSuite().
Referenced by main().
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().
Definition at line 72 of file test_all.c.
Referenced by AbortPrint(), BrushBSP(), BuildFacelights(), BuildLights(), CalcLightinfoExtents(), CalcPoints(), Check_Printf(), Check_SetNodraw(), CheckMapMicro(), ConstructLevelNodes_r(), DoRouting(), EmitFaceVertexes(), FaceFromPortal(), FinalLightFace(), FixTjuncs(), GatherSampleLight(), GenerateFootstepList(), GenerateMaterialFile(), GetEdge(), LightWorld(), LoadMapFile(), main(), MakeFaces_r(), ParseBrush(), ParseEntities(), ParseMapEntity(), PrintMapName(), ProcessLevel(), ProcessModels(), ProcessSubModel(), ProcessWorldModel(), SetImpliedFlags(), SubdivideFace(), U2M_Parameter(), and U2M_SetDefaultConfigValues().
const testSuite_t testSuites[] [static] |
{ UFO_AddGenericTests, UFO_AddParserTests, UFO_AddUITests, UFO_AddCampaignTests, UFO_AddRoutingTests, UFO_AddInventoryTests, UFO_AddRandomMapAssemblyTests, NULL }
Definition at line 43 of file test_all.c.
Referenced by main().