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

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

Include dependency graph for test_mapdef.cpp:

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).
 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

◆ RMA_HIGHEST_SUPPORTED_SEED

#define RMA_HIGHEST_SUPPORTED_SEED   50

Definition at line 36 of file test_mapdef.cpp.

Function Documentation

◆ TEST_F() [1/2]

◆ TEST_F() [2/2]

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_t::id, int(), LIST_Foreach, LIST_IsEmpty(), MapDef_Foreach, mapDef_t::mapTheme, mapDef_t::params, Q_streq, SV_Map(), SV_ShutdownGameProgs(), TEST_ExistsProperty(), TEST_GetLongProperty(), and TEST_GetStringProperty().