mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-03 02:48:32 -06:00
Feature/unittests (#536)
* Various fixes for Unit tests * Add regression test for #517 * Enable better handling of OptionProperties if no options are provided * Fix bug that left Lua state unclean after calling vector and matrix properites fromLuaState values * Fixed issues where numerical properties would not serialize and deserialize correct values * Added unit tests for OptionProperty * Fix unit test crash in SpaceManager
This commit is contained in:
@@ -48,57 +48,51 @@
|
||||
#define GHL_THROW_ON_ASSERT
|
||||
#endif // GHL_THROW_ON_ASSERTGHL_THROW_ON_ASSERT
|
||||
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/wrapper/windowwrapper.h>
|
||||
#include <openspace/util/factorymanager.h>
|
||||
#include <openspace/util/spicemanager.h>
|
||||
#include <openspace/util/time.h>
|
||||
#include <ghoul/cmdparser/cmdparser>
|
||||
#include <ghoul/filesystem/filesystem>
|
||||
#include <ghoul/logging/logging>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
#include <ghoul/lua/ghoul_lua.h>
|
||||
#include <ghoul/misc/dictionary.h>
|
||||
#include <iostream>
|
||||
|
||||
// test files
|
||||
#include <test_common.inl>
|
||||
#include <test_spicemanager.inl>
|
||||
#include <test_assetloader.inl>
|
||||
#include <test_documentation.inl>
|
||||
#include <test_luaconversions.inl>
|
||||
#include <test_optionproperty.inl>
|
||||
#include <test_powerscalecoordinates.inl>
|
||||
#include <test_scriptscheduler.inl>
|
||||
#include <test_spicemanager.inl>
|
||||
#include <test_timeline.inl>
|
||||
|
||||
#ifdef OPENSPACE_MODULE_GLOBEBROWSING_ENABLED
|
||||
//#include <test_chunknode.inl>
|
||||
#include <test_lrucache.inl>
|
||||
#include <test_aabb.inl>
|
||||
|
||||
#include <test_angle.inl>
|
||||
//#include <test_latlonpatch.inl>
|
||||
#include <test_gdalwms.inl>
|
||||
//#include <test_patchcoverageprovider.inl>
|
||||
|
||||
#include <test_concurrentqueue.inl>
|
||||
#include <test_concurrentjobmanager.inl>
|
||||
#include <test_concurrentqueue.inl>
|
||||
#include <test_lrucache.inl>
|
||||
#include <test_gdalwms.inl>
|
||||
#endif
|
||||
|
||||
#include <test_luaconversions.inl>
|
||||
#include <test_powerscalecoordinates.inl>
|
||||
|
||||
#ifdef OPENSPACE_MODULE_ISWA_ENABLED
|
||||
#include <test_screenspaceimage.inl>
|
||||
//#include <test_iswamanager.inl>
|
||||
#endif
|
||||
|
||||
#ifdef OPENSPACE_MODULE_VOLUME_ENABLED
|
||||
#include <test_rawvolumeio.inl>
|
||||
#endif
|
||||
|
||||
#include <test_scriptscheduler.inl>
|
||||
// Regression tests
|
||||
#include <regression/517.inl>
|
||||
|
||||
#include <test_documentation.inl>
|
||||
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/wrapper/windowwrapper.h>
|
||||
#include <openspace/engine/configurationmanager.h>
|
||||
|
||||
#include <openspace/util/factorymanager.h>
|
||||
#include <openspace/util/spicemanager.h>
|
||||
#include <openspace/util/time.h>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace ghoul::cmdparser;
|
||||
using namespace ghoul::filesystem;
|
||||
@@ -124,7 +118,18 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
if (!skipOsEng) {
|
||||
openspace::OpenSpaceEngine::create(argc, argv, std::make_unique<openspace::WindowWrapper>(), args, close, consoleLog);
|
||||
openspace::OpenSpaceEngine::create(
|
||||
argc,
|
||||
argv,
|
||||
std::make_unique<openspace::WindowWrapper>(),
|
||||
args,
|
||||
close,
|
||||
consoleLog
|
||||
);
|
||||
FileSys.registerPathToken("${TESTDIR}" , "${BASE}/tests");
|
||||
|
||||
// All of the relevant tests initialize the SpiceManager
|
||||
openspace::SpiceManager::deinitialize();
|
||||
}
|
||||
|
||||
testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user