mirror of
https://github.com/rwengine/openrw.git
synced 2024-10-04 08:07:17 +02:00
tests: only include test_globals.hpp when needed
This commit is contained in:
parent
9e20ad6c20
commit
9e9e684a44
@ -1,6 +1,6 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <platform/FileIndex.hpp>
|
||||
#include <test_globals.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(FileIndexTests)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <engine/GameData.hpp>
|
||||
#include <test_globals.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(GameDataTests)
|
||||
|
||||
@ -94,7 +94,6 @@ BOOST_AUTO_TEST_CASE(test_ped_groups) {
|
||||
|
||||
BOOST_REQUIRE_GE(red.size(), 8);
|
||||
BOOST_CHECK_EQUAL(red[0], 34);
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include <engine/GameData.hpp>
|
||||
#include <engine/GameWorld.hpp>
|
||||
#include <objects/InstanceObject.hpp>
|
||||
#include <test_globals.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(GameWorldTests)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <GameInput.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "GameInput.hpp"
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(InputTests)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <core/Logger.hpp>
|
||||
#include <test_globals.hpp>
|
||||
|
||||
class CallbackReceiver : public Logger::MessageReceiver {
|
||||
public:
|
||||
|
@ -2,7 +2,8 @@
|
||||
#include <engine/GameState.hpp>
|
||||
#include <engine/SaveGame.hpp>
|
||||
#include <script/ScriptMachine.hpp>
|
||||
#include <test_globals.hpp>
|
||||
|
||||
#include "test_globals.hpp"
|
||||
|
||||
#if 0 // Disabled until we make a start on saving the game
|
||||
BOOST_AUTO_TEST_SUITE(SaveGameTests)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <render/VisualFX.hpp>
|
||||
#include <test_globals.hpp>
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(VisualFXTests)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <MenuSystem.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(MenuUnitTests)
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <render/GameRenderer.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(RendererTests)
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include <script/SCMFile.hpp>
|
||||
#include <script/ScriptMachine.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
SCMByte data[] = {0x02, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00,
|
||||
0x01, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -1,6 +1,5 @@
|
||||
#include <State.hpp>
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "test_globals.hpp"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(StateUnitTests)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user