mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Disable testing if BUILD_TESTING is switched off
This is an "official" switch for disable testing; our own code which adds tests should adhere to it. (It is added by CTest)
This commit is contained in:
parent
48a0099190
commit
7900b3bbfc
@ -196,8 +196,10 @@ if (COMMAND tests_hook)
|
|||||||
endif (COMMAND tests_hook)
|
endif (COMMAND tests_hook)
|
||||||
|
|
||||||
# make datafiles necessary for tests available in output directory
|
# make datafiles necessary for tests available in output directory
|
||||||
opm_data (tests datafiles "${tests_DIR}")
|
if (BUILD_TESTING)
|
||||||
opm_compile_satellites (${project} tests "" "${tests_REGEXP}")
|
opm_data (tests datafiles "${tests_DIR}")
|
||||||
|
opm_compile_satellites (${project} tests "" "${tests_REGEXP}")
|
||||||
|
endif (BUILD_TESTING)
|
||||||
|
|
||||||
# use this target to run all tests
|
# use this target to run all tests
|
||||||
add_custom_target (check
|
add_custom_target (check
|
||||||
|
Loading…
Reference in New Issue
Block a user