From 06f61b2fd72bc41627fc3375161df84c2674d29b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 7 Apr 2021 00:55:57 +0300 Subject: cmake: check CTest tests output --- utils/CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 6f469a8..6a345c9 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -13,5 +13,13 @@ add_util(name2addr name2addr.cpp) add_util(addr2name addr2name.cpp command_line.hpp pdb_descr.hpp) if(MSVC) - add_test(NAME enum_symbols COMMAND enum_symbols --pdb "$" --mask "test_ns:*") + find_package(Python3 REQUIRED COMPONENTS Interpreter) + add_test(NAME enum_symbols COMMAND Python3::Interpreter + "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/tools/ctest-driver.py" + run + --pass-regex test_ns::baz test_ns::bar test_ns::foo test_ns::var + -- + "$" + --pdb "$" + --mask "test_ns:*") endif() -- cgit v1.2.3