Skip to content

Commit

Permalink
Added cmake option PHRQC_ENABLE_REGRESSION_TESTING by default long ru…
Browse files Browse the repository at this point in the history
…nning tests are disabled
  • Loading branch information
scharlton2 committed Apr 19, 2024
1 parent 1c63aab commit 0f255f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 7 additions & 1 deletion mytest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ set(H2S_FILES
)

# label current
# ctest -L pitzer
# ctest -L current
set(CURRENT
#mytest.Clogging
mytest.current_analytical
Expand Down Expand Up @@ -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()

0 comments on commit 0f255f6

Please # to comment.