UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_rma.cpp File Reference
#include "test_shared.h"
#include "../server/server.h"
#include "../server/sv_rma.h"
#include "../ports/system.h"

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

#define MAX_ALLOWED_TIME_TO_ASSEMBLE   30000

Definition at line 30 of file test_rma.cpp.

Referenced by RandomMapAssemblyTest::testAssembly().

#define SEED_TEST   0

Definition at line 172 of file test_rma.cpp.

#define TEST_ASSEMBLY   "nature_large_b"

Definition at line 32 of file test_rma.cpp.

Referenced by TEST_F().

#define TEST_THEME   "forest"

Definition at line 31 of file test_rma.cpp.

Referenced by TEST_F().

Function Documentation

TEST_F ( RandomMapAssemblyTest  ,
UMPExtends   
)

Definition at line 99 of file test_rma.cpp.

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

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 ( RandomMapAssemblyTest  ,
MassAssemblyTimeout   
)

Definition at line 118 of file test_rma.cpp.

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

TEST_F ( RandomMapAssemblyTest  ,
MassAssemblyParallel   
)

Definition at line 127 of file test_rma.cpp.

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

TEST_F ( RandomMapAssemblyTest  ,
MassAssemblySequential   
)

Definition at line 137 of file test_rma.cpp.

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

TEST_F ( RandomMapAssemblyTest  ,
Seedlists   
)

Definition at line 147 of file test_rma.cpp.

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

Variable Documentation

char mapStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS]
static

Definition at line 34 of file test_rma.cpp.

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

cvar_t maxclients
static

Definition at line 37 of file test_rma.cpp.

Referenced by RandomMapAssemblyTest::SetUpTestCase().

char posStr[MAX_TOKEN_CHARS *MAX_TILESTRINGS]
static

Definition at line 35 of file test_rma.cpp.

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

cvar_t svt
static

Definition at line 36 of file test_rma.cpp.

Referenced by RandomMapAssemblyTest::SetUpTestCase().