ManaPlus
|
#include <testmain.h>
Public Member Functions | |
TestMain () | |
~TestMain () | |
int | exec (const bool testAudio=true) |
Configuration & | getConfig () |
Static Public Member Functions | |
static int | readValue (const int ver, int def) |
Private Member Functions | |
void | initConfig () |
int | invokeTest (const std::string &test) |
int | invokeTest3 () |
int | invokeTest4 () |
int | invokeTest7 () |
int | invokeSoftwareRenderTest (const std::string &test) |
int | invokeNormalOpenGLRenderTest (const std::string &test) |
int | invokeNormalOpenBatchTest (const std::string &test) |
int | invokeModernOpenGLRenderTest (const std::string &test) |
int | invokeModernOpenBatchTest (const std::string &test) |
int | invokeMobileOpenBatchTest (const std::string &test) |
int | invokeSafeOpenBatchTest (const std::string &test) |
int | invokeSafeOpenGLRenderTest (const std::string &test) |
void | testsMain () |
void | writeConfig (const RenderType openGLMode, const int rescale, const int sound, const std::string &info, const int batchSize, const std::string &textureSize, const int detectMode) |
int | readValue2 (const int ver) |
Private Attributes | |
Logger * | log |
Configuration | mConfig |
Definition at line 33 of file testmain.h.
TestMain::TestMain | ( | ) |
Definition at line 42 of file testmain.cpp.
References fileName, getSelfName(), Settings::localDataDir, log, pathJoin(), Logger::setLogFile(), and settings.
TestMain::~TestMain | ( | ) |
Definition at line 50 of file testmain.cpp.
int TestMain::exec | ( | const bool | testAudio = true | ) |
Definition at line 78 of file testmain.cpp.
References CAST_SIZE, Actions::info(), initConfig(), invokeMobileOpenBatchTest(), invokeModernOpenBatchTest(), invokeModernOpenGLRenderTest(), invokeNormalOpenBatchTest(), invokeNormalOpenGLRenderTest(), invokeSafeOpenBatchTest(), invokeSafeOpenGLRenderTest(), invokeSoftwareRenderTest(), invokeTest(), invokeTest4(), openGLMode, readValue2(), RENDER_GLES_OPENGL, RENDER_MODERN_OPENGL, RENDER_NORMAL_OPENGL, RENDER_SAFE_OPENGL, RENDER_SOFTWARE, strprintf(), Catch::toString(), and writeConfig().
Referenced by GraphicsManager::startDetection().
|
inline |
Definition at line 46 of file testmain.h.
References mConfig.
Referenced by Setup_Video::action(), and GraphicsManager::detectVideoSettings().
|
private |
Definition at line 55 of file testmain.cpp.
References ConfigurationObject::clear(), Settings::configDir, Configuration::init(), mConfig, settings, Configuration::setValue(), SkipError_false, and UseVirtFs_false.
Referenced by exec().
|
private |
Definition at line 412 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, mConfig, RENDER_GLES_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 403 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, mConfig, RENDER_MODERN_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 385 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, Logger::log(), log, mConfig, RENDER_MODERN_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 394 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, mConfig, RENDER_NORMAL_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 376 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, Logger::log(), log, mConfig, RENDER_NORMAL_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 421 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, mConfig, RENDER_SAFE_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 430 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, Logger::log(), log, mConfig, RENDER_SAFE_OPENGL, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 367 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, Logger::log(), log, mConfig, RENDER_SOFTWARE, Configuration::setValue(), and Configuration::write().
Referenced by exec().
|
private |
Definition at line 349 of file testmain.cpp.
References CAST_S32, execFileWait(), fileName, mConfig, RENDER_SOFTWARE, Configuration::setValue(), and Configuration::write().
Referenced by exec(), and invokeTest4().
|
private |
|
private |
Definition at line 358 of file testmain.cpp.
References invokeTest(), Logger::log(), log, mConfig, and Configuration::setValue().
Referenced by exec().
|
private |
|
static |
Definition at line 326 of file testmain.cpp.
References Settings::localDataDir, pathJoin(), and settings.
Referenced by readValue2().
|
private |
Definition at line 319 of file testmain.cpp.
References Logger::log(), log, and readValue().
Referenced by exec().
|
private |
|
private |
Definition at line 277 of file testmain.cpp.
References CAST_S32, Settings::configDir, Actions::info(), Configuration::init(), Logger::log(), log, mConfig, openGLMode, settings, Configuration::setValue(), SkipError_false, UseVirtFs_false, and Configuration::write().
Referenced by exec().
|
private |
Definition at line 88 of file testmain.h.
Referenced by invokeModernOpenGLRenderTest(), invokeNormalOpenGLRenderTest(), invokeSafeOpenGLRenderTest(), invokeSoftwareRenderTest(), invokeTest4(), readValue2(), TestMain(), writeConfig(), and ~TestMain().
|
private |
Definition at line 90 of file testmain.h.
Referenced by getConfig(), initConfig(), invokeMobileOpenBatchTest(), invokeModernOpenBatchTest(), invokeModernOpenGLRenderTest(), invokeNormalOpenBatchTest(), invokeNormalOpenGLRenderTest(), invokeSafeOpenBatchTest(), invokeSafeOpenGLRenderTest(), invokeSoftwareRenderTest(), invokeTest(), invokeTest4(), and writeConfig().