]> git.localhorst.tv Git - tacos.git/blobdiff - tst/test.cpp
ray/floor intersection experiments
[tacos.git] / tst / test.cpp
index ff1ce710c25c80912d4ab90ed2fd18e61a8d75fd..a8f5a7e624599845461eb44010e86349b92f6403 100644 (file)
@@ -1,3 +1,7 @@
+#include "app/config.hpp"
+#include "app/init.hpp"
+#include "graphics/window.hpp"
+
 #include <cppunit/extensions/TestFactoryRegistry.h>
 #include <cppunit/ui/text/TestRunner.h>
 
@@ -6,6 +10,11 @@ using CppUnit::TextUi::TestRunner;
 
 
 int main(int, char **) {
+       // need GL context because some tests depend it (by accident)
+       tacos::Config config;
+       tacos::Init init(config);
+       tacos::Window window(100, 100);
+
        TestRunner runner;
        TestFactoryRegistry &registry = TestFactoryRegistry::getRegistry();
        runner.addTest(registry.makeTest());