#include "CUnit/Basic.h"
#include "test_rma.h"
#include "test_shared.h"
#include "../server/sv_rma.h"
#include "../ports/system.h"
Go to the source code of this file.
Functions | |
static int | UFO_InitSuiteRandomMapAssembly (void) |
static int | UFO_CleanSuiteRandomMapAssembly (void) |
static void | testAssembly (void) |
static void | testMassAssemblyTimeout (void) |
static void | testMassAssemblyParallel (void) |
static void | testMassAssemblySequential (void) |
int | UFO_AddRandomMapAssemblyTests (void) |
Variables | |
cvar_t * | sv_dumpmapassembly |
cvar_t * | sv_threads |
char | map [MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
char | pos [MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
Definition in file test_rma.c.
static void testAssembly | ( | void | ) | [static] |
Definition at line 60 of file test_rma.c.
References map, Mem_Free, pos, and SV_AssembleMap().
Referenced by UFO_AddRandomMapAssemblyTests().
static void testMassAssemblyParallel | ( | void | ) | [static] |
Definition at line 90 of file test_rma.c.
References i, cvar_s::integer, map, Mem_Free, mapInfo_s::numPlaced, pos, SV_AssembleMap(), Sys_Milliseconds(), and TEST_Printf().
Referenced by UFO_AddRandomMapAssemblyTests().
static void testMassAssemblySequential | ( | void | ) | [static] |
Definition at line 111 of file test_rma.c.
References i, cvar_s::integer, map, Mem_Free, mapInfo_s::numPlaced, pos, SV_AssembleMap(), Sys_Milliseconds(), and TEST_Printf().
Referenced by UFO_AddRandomMapAssemblyTests().
static void testMassAssemblyTimeout | ( | void | ) | [static] |
Definition at line 71 of file test_rma.c.
References i, cvar_s::integer, map, Mem_Free, mapInfo_s::numPlaced, pos, SV_AssembleMap(), Sys_Milliseconds(), and TEST_Printf().
Referenced by UFO_AddRandomMapAssemblyTests().
int UFO_AddRandomMapAssemblyTests | ( | void | ) |
Definition at line 130 of file test_rma.c.
References cvar_s::integer, sv_maxclients, testAssembly(), testMassAssemblyParallel(), testMassAssemblySequential(), testMassAssemblyTimeout(), UFO_CleanSuiteRandomMapAssembly(), and UFO_InitSuiteRandomMapAssembly().
static int UFO_CleanSuiteRandomMapAssembly | ( | void | ) | [static] |
The suite cleanup function. Returns zero on success, non-zero otherwise.
Definition at line 51 of file test_rma.c.
References TEST_Shutdown().
Referenced by UFO_AddRandomMapAssemblyTests().
static int UFO_InitSuiteRandomMapAssembly | ( | void | ) | [static] |
The suite initialization function. Returns zero on success, non-zero otherwise.
Definition at line 38 of file test_rma.c.
References Cvar_Get(), and TEST_Init().
Referenced by UFO_AddRandomMapAssemblyTests().
char map[MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
Definition at line 57 of file test_rma.c.
Referenced by B_ParseBaseTemplate(), CP_LoadMapDefStatXML(), CP_SaveMapDefStatXML(), CP_SaveXML(), GAME_MP_StartServer_f(), GAME_SK_Start_f(), path_find_mapfile(), SV_AssembleMap(), SV_AssemblyThread(), SV_Map(), SV_MapcycleAdd_f(), SV_NextMapcycle(), SV_ParseMapcycle(), testAssembly(), testMassAssemblyParallel(), testMassAssemblySequential(), testMassAssemblyTimeout(), and UI_BaseMapNodeClick().
char pos[MAX_TOKEN_CHARS *MAX_TILESTRINGS] |
Definition at line 58 of file test_rma.c.
Referenced by _pico_getline(), AIM_AircraftEquipSlotSelect_f(), B_BuildFromTemplate(), B_BuildingDestroy(), B_ParseBaseTemplate(), BuildFacelights(), CalcTextureReflectivity(), CL_ActorTraceMove(), CL_AddPathing(), CL_CenterView(), CL_EntAppear(), CL_GetEventTime(), CL_ParseParticle(), CL_StatsUpdate_f(), Com_MacroExpandString(), CP_BaseAttackStartMission(), CP_CalcAndUploadDayAndNightTexture(), DoRouting(), FS_FileLength(), G_ActorShouldStopInMidMove(), G_ClientAction(), G_ClientMove(), Grid_MoveCalc(), Grid_SetMoveData(), Irc_Client_CmdRplNamreply(), MAP_DrawMap(), MAP_MapClick(), NAT_ScriptSanityCheck(), NET_DatagramFindFreeSocket(), NET_StreamGetFree(), NET_WriteConstMsg(), PerpendicularVector(), pos3L_face(), pos3L_goto(), R_DrawSprite(), R_FontMakeChunks(), RT_CheckCell(), RT_FindOpening(), RT_MicroTrace(), SEQ_Render2D(), os::standardPath(), os::stripExtension(), SV_AddMapTiles(), SV_AddMissingTiles(), SV_Map(), SV_WriteDummyByte(), testAssembly(), testMassAssemblyParallel(), testMassAssemblySequential(), testMassAssemblyTimeout(), tinsert(), tremove(), UFO_SetRandomDest(), UFO_SetRandomPos(), UI_AbstractScrollableNodePageUp(), UI_BarNodeCapturedMouseMove(), UI_BaseInventoryNodeDraw2(), UI_BaseInventoryNodeDrawItems(), UI_BaseInventoryNodeGetItem(), UI_BaseMapNodeDraw(), UI_ButtonNodeDraw(), UI_CheckBoxNodeDraw(), UI_ContainerNodeDrawGrid(), UI_ContainerNodeDrawSingle(), UI_CustomButtonNodeDraw(), UI_EditorNodeHighlightNode(), UI_GetActiveRenderRect(), UI_GetLastFullScreenWindow(), UI_GetNodeAtPosition(), UI_InitializeNodeBehaviour(), UI_InsertComponent(), UI_InsertWindow(), UI_InvalidateStack(), UI_ItemNodeDraw(), UI_KeyBindingNodeDraw(), UI_LineChartNodeDraw(), UI_MapNodeDraw(), UI_MaterialEditorNodeDraw(), UI_MaterialEditorNodeGetImageAtPosition(), UI_MaterialEditorNodeUpdateView(), UI_MessageListNodeDraw(), UI_OptionListNodeDraw(), UI_OptionListNodeGetOptionAtPosition(), UI_OptionTreeNodeDraw(), UI_OptionTreeSetSelectedValue(), UI_PanelNodeDraw(), UI_ParseExcludeRect(), UI_RadarNodeCapturedMouseMove(), UI_RadarNodeDraw(), UI_RadioButtonNodeDraw(), UI_RowsNodeDraw(), UI_SelectBoxNodeClick(), UI_SpinnerNodeDraw(), UI_TabNodeDraw(), UI_TextEntryNodeDraw(), UI_TextLineNodeDrawText(), UI_TextNodeDrawText(), UI_TodoNodeDraw(), UI_Transform(), UI_VideoNodeDrawOverWindow(), UI_VScrollbarNodeCapturedMouseMove(), UI_VScrollbarNodeDiff(), UI_VScrollbarNodeDraw(), UI_VScrollbarNodeSet(), UI_VScrollbarNodeWheel(), and UI_WindowNodeDraw().
Definition at line 31 of file test_rma.c.
Referenced by SV_AssembleMap(), and SV_CalcRating().
run the game lib threaded
Definition at line 32 of file test_rma.c.
Referenced by SV_AddMapTiles(), SV_AssembleMap(), SV_InitGameProgs(), and SV_ParallelSearch().