UFO: Alien Invasion
|
Test cases for the mapdef code and loading the related maps. More...
#include "test_shared.h"
#include "../client/client.h"
#include "../client/cl_shared.h"
#include "../client/cl_lua.h"
#include "../client/renderer/r_state.h"
#include "../client/ui/ui_main.h"
#include "../common/routing.h"
#include "../server/server.h"
#include "../server/sv_rma.h"
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] |
Test cases for the mapdef code and loading the related maps.
Definition in file test_mapdefmassrma.cpp.
#define RMA_HIGHEST_SUPPORTED_SEED 50 |
Definition at line 36 of file test_mapdefmassrma.cpp.
Referenced by 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_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.
char mapStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
Definition at line 68 of file test_mapdefmassrma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), and TEST_F().
char posStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
Definition at line 69 of file test_mapdefmassrma.cpp.
Referenced by SV_AddMapTiles(), SV_AddMissingTiles(), and TEST_F().