Making cmake test names use paths so that test explorer shows them nicer.
diff --git a/build_tools/cmake/iree_cc_test.cmake b/build_tools/cmake/iree_cc_test.cmake
index 5040343..4ae27fb 100644
--- a/build_tools/cmake/iree_cc_test.cmake
+++ b/build_tools/cmake/iree_cc_test.cmake
@@ -112,7 +112,7 @@
set_property(TARGET ${_NAME} PROPERTY DIRECT_DEPS ${_RULE_DEPS})
string(REPLACE "::" "/" _PACKAGE_PATH ${_PACKAGE_NS})
- set(_TEST_NAME "${_PACKAGE_PATH}:${_RULE_NAME}")
+ set(_TEST_NAME "${_PACKAGE_PATH}/${_RULE_NAME}")
# Case for cross-compiling towards Android.
if(ANDROID)
diff --git a/build_tools/cmake/iree_lit_test.cmake b/build_tools/cmake/iree_lit_test.cmake
index 609e242..1a80cb4 100644
--- a/build_tools/cmake/iree_lit_test.cmake
+++ b/build_tools/cmake/iree_lit_test.cmake
@@ -66,7 +66,7 @@
iree_package_ns(_PACKAGE_NS)
string(REPLACE "::" "/" _PACKAGE_PATH ${_PACKAGE_NS})
- set(_NAME_PATH "${_PACKAGE_PATH}:${_RULE_NAME}")
+ set(_NAME_PATH "${_PACKAGE_PATH}/${_RULE_NAME}")
add_test(
NAME
${_NAME_PATH}