summaryrefslogtreecommitdiff
path: root/src/test/testlauncher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/testlauncher.cpp')
-rw-r--r--src/test/testlauncher.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/testlauncher.cpp b/src/test/testlauncher.cpp
index 6818c0b3c..b3fa729a0 100644
--- a/src/test/testlauncher.cpp
+++ b/src/test/testlauncher.cpp
@@ -23,6 +23,7 @@
#include "client.h"
#include "configuration.h"
#include "graphics.h"
+#include "graphicsmanager.h"
#include "localconsts.h"
#include "logger.h"
#include "sound.h"
@@ -69,6 +70,8 @@ int TestLauncher::exec()
return testRescale();
else if (mTest == "8" || mTest == "9" || mTest == "10")
return testFps();
+ else if (mTest == "99")
+ return testVideoDetection();
else if (mTest == "100")
return testInternal();
@@ -207,6 +210,13 @@ int TestLauncher::testInternal()
return 0;
}
+int TestLauncher::testVideoDetection()
+{
+ graphicsManager.detectGraphics();
+ file << mTest << std::endl;
+ file << config.getIntValue("opengl") << std::endl;
+}
+
int TestLauncher::calcFps(timeval *start, timeval *end, int calls)
{
long mtime;