diff --git a/CMakeLists.txt b/CMakeLists.txt index 03511a49b..5001fa163 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,6 +162,7 @@ if(PHRQC_USE_GMP) endif() option(PHRQC_TESTING "Set TESTING preprocessor definition" OFF) +option(PHRQC_ENABLE_REGRESSION_TESTING "When TESTING, enable tests that take longer to run" OFF) if(MSVC) diff --git a/mytest/CMakeLists.txt b/mytest/CMakeLists.txt index 52497eb24..f89d795da 100644 --- a/mytest/CMakeLists.txt +++ b/mytest/CMakeLists.txt @@ -599,7 +599,7 @@ set(H2S_FILES ) # label current -# ctest -L pitzer +# ctest -L current set(CURRENT #mytest.Clogging mytest.current_analytical @@ -837,3 +837,9 @@ if (NUMDIFF_COMMAND) # endif() endforeach() endif() + +if (NOT PHRQC_ENABLE_REGRESSION_TESTING) + foreach(test ${LONG_DEBUG}) + set_tests_properties(${test} PROPERTIES DISABLED TRUE) + endforeach() +endif()