36#define RMA_HIGHEST_SUPPORTED_SEED 50
77 ASSERT_TRUE(
csi.numMDs > 0);
82 if (filterId && !
Q_streq(filterId, md->
id))
90 seed = (
unsigned int) time(
nullptr);
94 Com_Printf(
"testMapDefsSingleplayer: Mapdef %s (seed %u)\n", md->
id, seed);
96 std::cout <<
"[ ] testing mapdef: " << md->
id << std::endl;
101 Com_Printf(
"testMapDefsSingleplayer: Mapdef %s (param %s)\n", md->
id, param);
102 std::cout <<
"[ ] testing mapdef: " << md->
id <<
", assembly: "
103 << param << std::endl;
117 ASSERT_TRUE(
csi.numMDs > 0);
124 if (filterId && !
Q_streq(filterId, md->
id))
135 seed = (
unsigned int) time(
nullptr);
139 Com_Printf(
"testMapDefsMultiplayer: Mapdef %s (seed %u)\n", md->
id, seed);
141 std::cout <<
"[ ] testing mapdef: " << md->
id << std::endl;
146 ASSERT_TRUE(
svs.ge->ClientConnect(player, userinfo,
sizeof(userinfo)));
151 Com_Printf(
"testMapDefsMultiplayer: Mapdef %s (param %s)\n", md->
id, param);
153 std::cout <<
"[ ] testing mapdef: " << md->
id <<
", assembly: "
154 << param << std::endl;
157 ASSERT_TRUE(
svs.ge->ClientConnect(player, userinfo,
sizeof(userinfo)));
void CL_InitLua(void)
Initializes the ui-lua interfacing environment.
memPool_t * vid_imagePool
memPool_t * cl_genericPool
Share stuff between the different cgame implementations.
static void SetUpTestCase()
static void TearDownTestCase()
Primary header for client.
void Com_Printf(const char *const fmt,...)
memPool_t * com_networkPool
cvar_t * masterserver_url
cvar_t * Cvar_Set(const char *varName, const char *value,...)
Sets a cvar value.
cvar_t * Cvar_Get(const char *var_name, const char *var_value, int flags, const char *desc)
Init or return a cvar.
void Info_SetValueForKey(char *s, const size_t size, const char *key, const char *value)
Adds a new entry into string with given value.
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
bool LIST_IsEmpty(const linkedList_t *list)
Checks whether the given list is empty.
const linkedList_t * LIST_ContainsString(const linkedList_t *list, const char *string)
Searches for the first occurrence of a given string.
#define LIST_Foreach(list, type, var)
Iterates over a linked list, it's safe to delete the returned entry from the list while looping over ...
#define Mem_CreatePool(name)
#define MapDef_ForeachCondition(var, condition)
#define MapDef_Foreach(var)
grid pathfinding and routing
void Com_ParseScripts(bool onlyServer)
Main server include file.
memPool_t * sv_genericPool
void SV_Map(bool day, const char *levelstring, const char *assembly, bool verbose=true)
Change the server to a new map, taking all connected clients along with it.
void SV_ShutdownGameProgs(void)
Called when either the entire server is being killed, or it is changing to a different game directory...
serverInstanceStatic_t svs
cvar_t * sv_dumpmapassembly
TEST_F(MapDefTest, MapDefsSingleplayer)
This test cycles through the list of map definitions found in the maps.ufo script and tries to load (...
bool TEST_ExistsProperty(const char *name)
const char * TEST_GetStringProperty(const char *name)
long TEST_GetLongProperty(const char *name)