UFO: Alien Invasion
test_rma.cpp File Reference
#include "test_shared.h"
#include "../server/server.h"
#include "../server/sv_rma.h"
#include "../ports/system.h"
Include dependency graph for test_rma.cpp:

Go to the source code of this file.

Data Structures

class  RandomMapAssemblyTest
 

Macros

#define MAX_ALLOWED_TIME_TO_ASSEMBLE   30000
 
#define TEST_THEME   "forest"
 
#define TEST_ASSEMBLY   "nature_large_b"
 
#define SEED_TEST   0
 

Functions

 TEST_F (RandomMapAssemblyTest, UMPExtends)
 
 TEST_F (RandomMapAssemblyTest, Assembly)
 
 TEST_F (RandomMapAssemblyTest, MassAssemblyTimeout)
 
 TEST_F (RandomMapAssemblyTest, MassAssemblyParallel)
 
 TEST_F (RandomMapAssemblyTest, MassAssemblySequential)
 
 TEST_F (RandomMapAssemblyTest, Seedlists)
 

Variables

static char mapStr [MAX_TOKEN_CHARS *MAX_TILESTRINGS]
 
static char posStr [MAX_TOKEN_CHARS *MAX_TILESTRINGS]
 
static cvar_t svt
 
static cvar_t maxclients
 

Macro Definition Documentation

◆ MAX_ALLOWED_TIME_TO_ASSEMBLE

#define MAX_ALLOWED_TIME_TO_ASSEMBLE   30000

Definition at line 30 of file test_rma.cpp.

◆ SEED_TEST

#define SEED_TEST   0

Definition at line 172 of file test_rma.cpp.

◆ TEST_ASSEMBLY

#define TEST_ASSEMBLY   "nature_large_b"

Definition at line 32 of file test_rma.cpp.

◆ TEST_THEME

#define TEST_THEME   "forest"

Definition at line 31 of file test_rma.cpp.

Function Documentation

◆ TEST_F() [1/6]

TEST_F ( RandomMapAssemblyTest  ,
Assembly   
)

Definition at line 108 of file test_rma.cpp.

References mapStr, MAX_TOKEN_CHARS, posStr, SV_AssembleMap(), TEST_ASSEMBLY, and TEST_THEME.

◆ TEST_F() [2/6]

TEST_F ( RandomMapAssemblyTest  ,
MassAssemblyParallel   
)

Definition at line 127 of file test_rma.cpp.

References cvar_t::integer, sv_threads, TEST_ASSEMBLY, TEST_THEME, and va().

◆ TEST_F() [3/6]

TEST_F ( RandomMapAssemblyTest  ,
MassAssemblySequential   
)

Definition at line 137 of file test_rma.cpp.

References cvar_t::integer, sv_threads, TEST_ASSEMBLY, TEST_THEME, and va().

◆ TEST_F() [4/6]

TEST_F ( RandomMapAssemblyTest  ,
MassAssemblyTimeout   
)

Definition at line 118 of file test_rma.cpp.

References cvar_t::integer, sv_threads, TEST_ASSEMBLY, TEST_THEME, and va().

◆ TEST_F() [5/6]

TEST_F ( RandomMapAssemblyTest  ,
Seedlists   
)

Definition at line 147 of file test_rma.cpp.

References Com_Printf(), cvar_t::integer, length, sv_threads, TEST_ASSEMBLY, TEST_THEME, and va().

◆ TEST_F() [6/6]

TEST_F ( RandomMapAssemblyTest  ,
UMPExtends   
)

Definition at line 99 of file test_rma.cpp.

References mapStr, MAX_TOKEN_CHARS, posStr, and SV_AssembleMap().

Variable Documentation

◆ mapStr

char mapStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS]
static

Definition at line 34 of file test_rma.cpp.

Referenced by TEST_F(), and RandomMapAssemblyTest::testAssembly().

◆ maxclients

cvar_t maxclients
static

Definition at line 37 of file test_rma.cpp.

Referenced by RandomMapAssemblyTest::SetUpTestCase().

◆ posStr

char posStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS]
static

Definition at line 35 of file test_rma.cpp.

Referenced by TEST_F(), and RandomMapAssemblyTest::testAssembly().

◆ svt

cvar_t svt
static

Definition at line 36 of file test_rma.cpp.

Referenced by RandomMapAssemblyTest::SetUpTestCase().