Commit 629f8b2 1 parent febb177 commit 629f8b2 Copy full SHA for 629f8b2
File tree 4 files changed +9
-15
lines changed
4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 24
24
- ' Version3/**'
25
25
- ' README.md'
26
26
schedule :
27
- - cron : ' 1 2 2/7 * *'
27
+ - cron : ' 1 2 * * 2 '
28
28
workflow_dispatch :
29
29
30
30
jobs :
@@ -167,7 +167,7 @@ jobs:
167
167
run : ctest -S ctest.cmake -DCTEST_TEST_TIMEOUT=900
168
168
169
169
- name : CMemCheck (Linux)
170
- if : runner.os == 'Linux'
170
+ if : runner.os == 'Linux' && github.event_name == 'schedule'
171
171
run : ctest -S cmemcheck.cmake -DCTEST_TEST_TIMEOUT=900
172
172
173
173
- name : Upload results
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ if(PHRQC_USE_GMP)
162
162
endif ()
163
163
164
164
option (PHRQC_TESTING "Set TESTING preprocessor definition" OFF )
165
- option (PHRQC_ENABLE_REGRESSION_TESTING "When TESTING, enable tests that take longer to run" OFF )
165
+ option (PHRQC_ENABLE_REGRESSION_TESTING "Enables all tests including tests that take over 600 seconds to run" OFF )
166
166
167
167
if (MSVC )
168
168
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)
22
22
ctest_empty_binary_directory (${CTEST_BINARY_DIRECTORY} )
23
23
ctest_start ("Continuous" )
24
24
ctest_update ()
25
- ctest_configure (OPTIONS -DPHRQC_TESTING:BOOL =ON )
25
+ ctest_configure (OPTIONS " -DPHRQC_TESTING:BOOL=ON;-DPHRQC_ENABLE_REGRESSION_TESTING:BOOL=ON" )
26
26
ctest_build ()
27
27
if (${CMAKE_VERSION} VERSION_LESS "3.29" )
28
28
ctest_memcheck (EXCLUDE "numdiff" EXCLUDE_LABEL "long_memcheck" PARALLEL_LEVEL 2)
Original file line number Diff line number Diff line change @@ -830,21 +830,15 @@ if (NUMDIFF_COMMAND)
830
830
endif ()
831
831
endforeach ()
832
832
endif ()
833
-
834
- # # disable tests that take too long
835
- # if (${prefix} IN_LIST SKIP)
836
- # set_tests_properties(${test_name} PROPERTIES DISABLED TRUE)
837
- # endif()
838
833
endforeach ()
839
834
endif ()
840
835
841
836
if (NOT PHRQC_ENABLE_REGRESSION_TESTING)
842
- foreach (test ${TESTS} )
843
- get_test_property (test_labels ${test} LABELS )
844
- if ("long_debug" IN_LIST test_labels)
845
- set_tests_properties (${test} PROPERTIES DISABLED TRUE )
846
- endif ()
847
- if ("long_memcheck" IN_LIST test_labels)
837
+ get_property (all_tests DIRECTORY PROPERTY TESTS)
838
+ foreach (test ${all_tests} )
839
+ get_test_property (${test} LABELS test_labels)
840
+ if ("long_debug" IN_LIST test_labels OR "long_memcheck" IN_LIST test_labels)
841
+ # message(STATUS "disabling ${test}" )
848
842
set_tests_properties (${test} PROPERTIES DISABLED TRUE )
849
843
endif ()
850
844
endforeach ()
You can’t perform that action at this time.
0 commit comments