aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 00:55:57 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-07 00:55:57 +0300
commit06f61b2fd72bc41627fc3375161df84c2674d29b (patch)
tree7df19832a66b187f421275411efbce3c88d15112 /utils
parentcmake: slight CMakeLists.txt refactoring (diff)
downloadwinapi-debug-06f61b2fd72bc41627fc3375161df84c2674d29b.tar.gz
winapi-debug-06f61b2fd72bc41627fc3375161df84c2674d29b.zip
cmake: check CTest tests output
Diffstat (limited to 'utils')
-rw-r--r--utils/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
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 "$<TARGET_PDB_FILE:test_lib>" --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
+ --
+ "$<TARGET_FILE:enum_symbols>"
+ --pdb "$<TARGET_PDB_FILE:test_lib>"
+ --mask "test_ns:*")
endif()