aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-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()