From 1e20fe5b48269e93e7e808a71badc95584c5bcea Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 May 2021 10:02:21 +0300 Subject: unit_tests: use ctest-driver.py --- test/unit_tests/CMakeLists.txt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index 312d2f9..499ed20 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -12,6 +12,12 @@ target_link_libraries(unit_tests PRIVATE install(TARGETS unit_tests RUNTIME DESTINATION bin) install_pdbs(TARGETS unit_tests DESTINATION bin) -add_test(NAME unit_tests COMMAND unit_tests --no_color_output) -set_tests_properties(unit_tests PROPERTIES - PASS_REGULAR_EXPRESSION "No errors detected") +find_package(Python3 REQUIRED COMPONENTS Interpreter) + +add_test(NAME unit_tests COMMAND Python3::Interpreter + "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/tools/ctest-driver.py" + run + --pass-regex [=[^\*\*\* No errors detected$]=] + -- + "$" + --no_color_output) -- cgit v1.2.3