UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_mapdefmassrma.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  MapDefMassRMATest
 

Macros

#define RMA_HIGHEST_SUPPORTED_SEED   50
 

Functions

 TEST_F (MapDefMassRMATest, DISABLED_MapDefsMassRMA)
 This test cycles through the list of map definitions found in the maps.ufo script and builds each map with each ufo and every assembly for all valid seeds. In other words: this a FULL test to check if some seed causes problems in any of the possible combinations, so it should not be run on the buildserver on a daily basis. More...
 

Variables

char mapStr [MAX_TOKEN_CHARS *MAX_TILESTRINGS]
 
char posStr [MAX_TOKEN_CHARS *MAX_TILESTRINGS]
 

Detailed Description

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

Definition in file test_mapdefmassrma.cpp.

Macro Definition Documentation

#define RMA_HIGHEST_SUPPORTED_SEED   50

Definition at line 36 of file test_mapdefmassrma.cpp.

Referenced by TEST_F().

Function Documentation

TEST_F ( MapDefMassRMATest  ,
DISABLED_MapDefsMassRMA   
)

This test cycles through the list of map definitions found in the maps.ufo script and builds each map with each ufo and every assembly for all valid seeds. In other words: this a FULL test to check if some seed causes problems in any of the possible combinations, so it should not be run on the buildserver on a daily basis.

You can test a certain assembly by passing "-Dmapdef-id=assembly" to testall.

Definition at line 77 of file test_mapdefmassrma.cpp.

References mapDef_s::aircraft, Com_GetRandomMapAssemblyNameForCraft(), Com_Printf(), CS_ENTITYSTRING, csi, Cvar_Set(), linkedList_t::data, endof, i, mapDef_s::id, cvar_s::integer, LIST_GetByIdx(), mapCount, MapDef_Foreach, mapStr, mapDef_s::mapTheme, linkedList_t::next, csi_s::numMDs, mapDef_s::params, posStr, Q_streq, RMA_HIGHEST_SUPPORTED_SEED, SV_AssembleMap(), SV_GetConfigString(), sv_threads, Sys_Milliseconds(), TEST_GetStringProperty(), and mapDef_s::ufos.

Variable Documentation

Definition at line 68 of file test_mapdefmassrma.cpp.

Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), and TEST_F().

Definition at line 69 of file test_mapdefmassrma.cpp.

Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), and TEST_F().