UFO: Alien Invasion
Loading...
Searching...
No Matches
test_mapdefmassrma.cpp File Reference

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

Include dependency graph for test_mapdefmassrma.cpp:

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.

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

◆ RMA_HIGHEST_SUPPORTED_SEED

#define RMA_HIGHEST_SUPPORTED_SEED   50

Definition at line 36 of file test_mapdefmassrma.cpp.

Function Documentation

◆ TEST_F()

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_t::aircraft, Com_GetRandomMapAssemblyNameForCraft(), Com_Printf(), CS_ENTITYSTRING, csi, Cvar_Set(), linkedList_t::data, endof, i, mapDef_t::id, LIST_GetByIdx(), mapCount, MapDef_Foreach, mapStr, mapDef_t::mapTheme, linkedList_t::next, mapDef_t::params, posStr, Q_streq, RMA_HIGHEST_SUPPORTED_SEED, SV_AssembleMap(), SV_GetConfigString(), sv_threads, Sys_Milliseconds(), TEST_GetStringProperty(), and mapDef_t::ufos.

Variable Documentation

◆ mapStr

◆ posStr