From c6e762dc3d96f3ba8ef416a2f5e10d54f912bf2e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Fri, 11 Feb 2022 04:46:22 -0600 Subject: [PATCH] force a rerun of performance tests --- tests/run_testsuite.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/run_testsuite.cmake b/tests/run_testsuite.cmake index b8744c66a1..52553a1e74 100644 --- a/tests/run_testsuite.cmake +++ b/tests/run_testsuite.cmake @@ -521,6 +521,24 @@ IF("${_res}" STREQUAL "0") IF("${_res}" STREQUAL "0") # Only run tests if the build was successful: + IF(ENABLE_PERFORMANCE_TESTS) + MESSAGE("-- Running prune_tests") + EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} + --build . --target prune_tests + -- ${MAKEOPTS} + WORKING_DIRECTORY ${CTEST_BINARY_DIRECTORY} + OUTPUT_QUIET + RESULT_VARIABLE _res + ) + + IF(NOT "${_res}" STREQUAL "0") + MESSAGE(FATAL_ERROR " +\"prune_tests\" target exited with an error. Bailing out. +" + ) + ENDIF() + ENDIF() + MESSAGE("-- Running setup_tests") EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} --build . --target setup_tests -- 2.39.5