diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 10:02:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-04 10:02:21 +0300 |
commit | 1e20fe5b48269e93e7e808a71badc95584c5bcea (patch) | |
tree | a97b730e3b26d2ff96ae85de25aa8f72a8300ad7 /test/unit_tests/CMakeLists.txt | |
parent | update cmake-common (diff) | |
download | math-server-1e20fe5b48269e93e7e808a71badc95584c5bcea.tar.gz math-server-1e20fe5b48269e93e7e808a71badc95584c5bcea.zip |
unit_tests: use ctest-driver.py
Diffstat (limited to 'test/unit_tests/CMakeLists.txt')
-rw-r--r-- | test/unit_tests/CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
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$]=] + -- + "$<TARGET_FILE:unit_tests>" + --no_color_output) |