simplify cmake code for tuning tests

add a post command to the runSimulator script and use this to
execute the unit test at the end of the run
This commit is contained in:
Arne Morten Kvarving
2023-07-03 09:05:45 +02:00
parent fae3859c5a
commit c3847e8325
4 changed files with 41 additions and 38 deletions

View File

@@ -322,6 +322,13 @@ endmacro (tests_hook)
# all setup common to the OPM library modules is done here
include (OpmLibMain)
opm_add_test(test_tuning_xxxMBE
SOURCES
tests/test_tuning_XXXMBE.cpp
LIBRARIES
${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}
ONLY_COMPILE)
if (HAVE_OPM_TESTS)
include (${CMAKE_CURRENT_SOURCE_DIR}/compareECLFiles.cmake)
endif()