(#687) Added option RESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS to enable unit tests

This commit is contained in:
Magne Sjaastad
2015-12-03 11:38:59 +01:00
parent c72e047b23
commit de41755320
3 changed files with 52 additions and 7 deletions

View File

@@ -1186,6 +1186,7 @@ bool RiaApplication::parseArguments()
//--------------------------------------------------------------------------------------------------
int RiaApplication::launchUnitTests()
{
#ifdef USE_UNIT_TESTS
cvf::Assert::setReportMode(cvf::Assert::CONSOLE);
int argc = QCoreApplication::argc();
@@ -1198,6 +1199,9 @@ int RiaApplication::launchUnitTests()
// parsed by InitGoogleTest().
return RUN_ALL_TESTS();
#else
return -1;
#endif
}
//--------------------------------------------------------------------------------------------------