mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#687) Added option RESINSIGHT_INCLUDE_APPLICATION_UNIT_TESTS to enable unit tests
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user