Skip to content

Commit

Permalink
Move comments, drop redunant iree_package_ns
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre committed Apr 2, 2020
1 parent 3954454 commit 34dc25d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions build_tools/cmake/iree_cc_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,14 @@ function(iree_cc_test)
set_property(GLOBAL APPEND PROPERTY _IREE_CC_BINARY_NAMES "${_NAME}")
set_property(TARGET ${_NAME} PROPERTY DIRECT_DEPS ${_RULE_DEPS})

# We run all our tests through a custom test runner to allow temp directory
# cleanup upon test completion.

iree_package_ns(_PACKAGE_NS)
string(REPLACE "::" "/" _PACKAGE_PATH ${_PACKAGE_NS})
set(_NAME_PATH "${_PACKAGE_PATH}:${_RULE_NAME}")
add_test(
NAME
${_NAME_PATH}
COMMAND
# We run all our tests through a custom test runner to allow temp
# directory cleanup upon test completion.
"${CMAKE_SOURCE_DIR}/build_tools/cmake/run_test.${IREE_HOST_SCRIPT_EXT}"
"$<TARGET_FILE:${_NAME}>"
WORKING_DIRECTORY
Expand Down
3 changes: 2 additions & 1 deletion build_tools/cmake/iree_lit_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ function(iree_lit_test)
endif()
endforeach(_DATA_DEP)

# We run all our tests through a custom test runner to allow setup and teardown.
iree_package_ns(_PACKAGE_NS)
string(REPLACE "::" "/" _PACKAGE_PATH ${_PACKAGE_NS})
set(_NAME_PATH "${_PACKAGE_PATH}:${_RULE_NAME}")
add_test(
NAME
${_NAME_PATH}
COMMAND
# We run all our tests through a custom test runner to allow setup
# and teardown.
"${CMAKE_SOURCE_DIR}/build_tools/cmake/run_test.${IREE_HOST_SCRIPT_EXT}"
"${CMAKE_SOURCE_DIR}/iree/tools/run_lit.${IREE_HOST_SCRIPT_EXT}"
${_TEST_FILE_PATH}
Expand Down

0 comments on commit 34dc25d

Please sign in to comment.