UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
test_footsteps.cpp File Reference

Test cases for the mapdef code and loading the related maps. More...

Go to the source code of this file.

Data Structures

class  FootStepTest
 

Macros

#define FOOTSTEPS_FULL   0
 

Functions

 TEST_F (FootStepTest, DISABLED_MapDefsFootSteps)
 This test cycles through the list of map definitions found in the maps.ufo script and tries to find surfaces to stand on with no sound assigned to them. More...
 

Detailed Description

Test cases for the mapdef code and loading the related maps.

Definition in file test_footsteps.cpp.

Macro Definition Documentation

#define FOOTSTEPS_FULL   0

Definition at line 66 of file test_footsteps.cpp.

Function Documentation

TEST_F ( FootStepTest  ,
DISABLED_MapDefsFootSteps   
)

This test cycles through the list of map definitions found in the maps.ufo script and tries to find surfaces to stand on with no sound assigned to them.

This test takes too long to be run every time testall is run. So it's set up almost like a game: After 5 maps (the first of them is fully checked) with missing sounds, the test stops. If we manage to 'clean' one of those 5 maps, the next map will show up in the next run.

Definition at line 75 of file test_footsteps.cpp.

References GridBox::clipToMaxBoundaries(), Com_Printf(), count, csi, GridBox::expandXY(), Routing::getFloor(), GridBox::getMaxX(), GridBox::getMaxY(), GridBox::getMaxZ(), GridBox::getMinX(), GridBox::getMinY(), GridBox::getMinZ(), i, mapDef_s::id, int(), LIST_GetByIdx(), mapData_s::mapBox, mapCount, serverInstanceGame_s::mapData, MapDef_Foreach, mapDef_s::mapTheme, MASK_SOLID, MAX_QPATH, GridBox::maxs, cBspSurface_s::name, csi_s::numMDs, OBJZERO, mapDef_s::params, PosToVec, Q_streq, Q_strncpyz(), QUANT, mapData_s::routing, GridBox::set(), trace_s::surface, sv, SV_GetFootstepSound(), SV_Map(), SV_ShutdownGameProgs(), SV_Trace(), TEST_ExistsProperty(), TEST_GetLongProperty(), TEST_GetStringProperty(), UNIT_HEIGHT, vec3_origin, and VectorCopy.