UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_mapdef.cpp File Reference

Test cases for the mapdef code and loading the related maps. More...

Go to the source code of this file.

Data Structures

class  MapDefTest
 

Macros

#define RMA_HIGHEST_SUPPORTED_SEED   50
 

Functions

 TEST_F (MapDefTest, MapDefsSingleplayer)
 This test cycles through the list of map definitions found in the maps.ufo script and tries to load (and build in case of RMA) each map once (with a random seed). More...
 
 TEST_F (MapDefTest, MapDefsMultiplayer)
 

Detailed Description

Test cases for the mapdef code and loading the related maps.

Definition in file test_mapdef.cpp.

Macro Definition Documentation

#define RMA_HIGHEST_SUPPORTED_SEED   50

Definition at line 36 of file test_mapdef.cpp.

Function Documentation

TEST_F ( MapDefTest  ,
MapDefsSingleplayer   
)

This test cycles through the list of map definitions found in the maps.ufo script and tries to load (and build in case of RMA) each map once (with a random seed).

Definition at line 72 of file test_mapdef.cpp.

References Com_Printf(), csi, mapDef_s::id, int(), LIST_Foreach, LIST_IsEmpty(), MapDef_Foreach, mapDef_s::mapTheme, csi_s::numMDs, mapDef_s::params, Q_streq, SV_Map(), SV_ShutdownGameProgs(), TEST_ExistsProperty(), TEST_GetLongProperty(), and TEST_GetStringProperty().