1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00
openrw/tests/main.cpp
2013-12-12 02:55:31 +00:00

23 lines
426 B
C++

#define BOOST_TEST_MODULE gtfw
#include <boost/test/included/unit_test.hpp>
#include <SFML/Window.hpp>
#include <renderwure/engine/GTAEngine.hpp>
// Many tests require OpenGL be functional, seems like a reasonable solution.
class GlobalFixture
{
public:
sf::Window wnd;
GlobalFixture() {
wnd.create(sf::VideoMode(640, 360), "Testing");
}
~GlobalFixture() {
wnd.close();
}
};
BOOST_GLOBAL_FIXTURE(GlobalFixture)