|
UFO: Alien Invasion
|


Go to the source code of this file.
Functions | |
| void | TEST_vPrintf (const char *fmt, va_list argptr) |
| void | TEST_vPrintfSilent (const char *fmt, va_list argptr) |
| void | TEST_Init (void) |
| void | TEST_Shutdown (void) |
| void | TEST_RegisterProperty (const char *name, const char *value) |
| bool | TEST_ExistsProperty (const char *name) |
| int | TEST_GetIntProperty (const char *name) |
| long | TEST_GetLongProperty (const char *name) |
| const char * | TEST_GetStringProperty (const char *name) |
| bool TEST_ExistsProperty | ( | const char * | name | ) |
Test if a property from global test structure exists
| name | Name of the property |
Definition at line 175 of file test_shared.cpp.
References name, and TEST_GetProperty().
Referenced by TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), GameTest::testCountSpawnpointsForMap(), GameTest::testCountSpawnpointsForMapWithAssembly(), GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraft(), and GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraftAndUfo().
| int TEST_GetIntProperty | ( | const char * | name | ) |
Get a property value from global test structure
| name | Name of the property |
Definition at line 200 of file test_shared.cpp.
References Com_Printf(), name, TEST_GetProperty(), and test_property_t::value.
| long TEST_GetLongProperty | ( | const char * | name | ) |
Get a property value from global test structure
| name | Name of the property |
Definition at line 215 of file test_shared.cpp.
References Com_Printf(), name, TEST_GetProperty(), and test_property_t::value.
| const char * TEST_GetStringProperty | ( | const char * | name | ) |
Get a property value from global test structure
| name | Name of the property |
Definition at line 185 of file test_shared.cpp.
References Com_Printf(), name, TEST_GetProperty(), and test_property_t::value.
Referenced by WebApiTest::SetUpTestCase(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), GameTest::testCountSpawnpointsForMap(), GameTest::testCountSpawnpointsForMapWithAssembly(), GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraft(), and GameTest::testCountSpawnpointsForMapWithAssemblyAndAircraftAndUfo().
Definition at line 72 of file test_shared.cpp.
References Cbuf_Init(), Cmd_Init(), com_aliasSysPool, com_cmdSysPool, com_cmodelSysPool, com_cvarSysPool, com_fileSysPool, com_genericPool, csi, Cvar_Get(), Cvar_Init(), FS_AddGameDirectory(), FS_AddHomeAsGameDirectory(), FS_ExecAutoexec(), FS_InitFilesystem(), http_proxy, http_timeout, hwclass, Mem_CreatePool, Mem_Init(), NET_Init(), OBJZERO, SV_Init(), Swap_Init(), and Sys_Error().
Referenced by CampaignTest::SetUpTestCase(), CharacterTest::SetUpTestCase(), DBufferTest::SetUpTestCase(), EventsTest::SetUpTestCase(), FootStepTest::SetUpTestCase(), GameTest::SetUpTestCase(), GenericTest::SetUpTestCase(), InventoryTest::SetUpTestCase(), MapDefMassRMATest::SetUpTestCase(), MapDefStatsTest::SetUpTestCase(), MapDefTest::SetUpTestCase(), ParserTest::SetUpTestCase(), ParticleTest::SetUpTestCase(), RandomMapAssemblyTest::SetUpTestCase(), RendererTest::SetUpTestCase(), RoutingTest::SetUpTestCase(), ScriptTest::SetUpTestCase(), UILevel2Test::SetUpTestCase(), UITest::SetUpTestCase(), and WebApiTest::SetUpTestCase().
| void TEST_RegisterProperty | ( | const char * | name, |
| const char * | value ) |
interface to allow to custom tests with command line
Register a property name-value to a global structure for all tests
| name | Name of the property |
| value | Value of the property. Only the pointer of the value is used. Use it ONLY with stable memory. |
TODO maybe copy the value instead of copying the pointer of the value
Definition at line 125 of file test_shared.cpp.
References Com_HashKey(), Com_Printf(), hash, test_property_t::hash_next, name, test_property_t::name, test_property_t::next, PROPERTY_HASH_SIZE, Q_streq, Q_strncpyz(), test_property, test_property_hash, and test_property_t::value.
Referenced by Test_Parameters().
Definition at line 34 of file test_shared.cpp.
References Cbuf_Shutdown(), CL_ShutdownLua(), Cmd_Shutdown(), com_aliasSysPool, com_cmdSysPool, com_cmodelSysPool, com_cvarSysPool, com_fileSysPool, com_genericPool, Com_Shutdown(), Cvar_Shutdown(), developer, FS_Shutdown(), Mem_Shutdown(), NET_Shutdown(), PTL_InitStartup(), R_ShutdownImages(), SV_Shutdown(), and UI_Shutdown().
Referenced by CampaignTest::TearDownTestCase(), CharacterTest::TearDownTestCase(), DBufferTest::TearDownTestCase(), EventsTest::TearDownTestCase(), FootStepTest::TearDownTestCase(), GameTest::TearDownTestCase(), GenericTest::TearDownTestCase(), InventoryTest::TearDownTestCase(), MapDefMassRMATest::TearDownTestCase(), MapDefStatsTest::TearDownTestCase(), MapDefTest::TearDownTestCase(), ParserTest::TearDownTestCase(), ParticleTest::TearDownTestCase(), RandomMapAssemblyTest::TearDownTestCase(), RendererTest::TearDownTestCase(), RoutingTest::TearDownTestCase(), ScriptTest::TearDownTestCase(), UILevel2Test::TearDownTestCase(), UITest::TearDownTestCase(), and WebApiTest::TearDownTestCase().
| void TEST_vPrintf | ( | const char * | fmt, |
| va_list | argptr ) |
| void TEST_vPrintfSilent | ( | const char * | fmt, |
| va_list | argptr ) |
Definition at line 58 of file test_shared.cpp.
Referenced by main().