Skip to content

Commit

Permalink
Add "test-type=lit-test" and "test-type=check-test" labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Jul 24, 2024
1 parent 40329ff commit bb61b19
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions build_tools/cmake/iree_check_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function(iree_check_test)
"--module={{${_MODULE_FILE_NAME}}}"
${_RULE_RUNNER_ARGS}
LABELS
"test-type=check-test"
${_RULE_LABELS}
TIMEOUT
${_RULE_TIMEOUT}
Expand Down
5 changes: 3 additions & 2 deletions build_tools/cmake/iree_lit_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ include(CMakeParseArguments)
# TOOLS: Tools that should be included on the PATH
# DATA: Additional data dependencies invoked by the test (e.g. binaries
# called in the RUN line)
# LABELS: Additional labels to apply to the test. The package path is added
# automatically.
# LABELS: Additional labels to apply to the test. Package path and
# "test-type=lit-test" labels are added automatically.
function(iree_lit_test)
if(NOT IREE_BUILD_TESTS)
return()
Expand Down Expand Up @@ -75,6 +75,7 @@ function(iree_lit_test)
)

list(APPEND _RULE_LABELS "${_PACKAGE_PATH}")
list(APPEND _RULE_LABELS "test-type=lit-test")
set_property(TEST ${_NAME_PATH} PROPERTY LABELS "${_RULE_LABELS}")
set_property(TEST ${_NAME_PATH} PROPERTY REQUIRED_FILES "${_TEST_FILE_PATH}")
set_property(TEST ${_NAME_PATH} PROPERTY ENVIRONMENT
Expand Down
5 changes: 3 additions & 2 deletions build_tools/cmake/iree_run_module_test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ endfunction()
# EXPECTED_OUTPUT: A string representing the expected output from executing
# the module in the format accepted by `iree-run-module` or a file
# containing the same. Can also be an HTTPS URL to download large npy.
# LABELS: Additional labels to apply to the test. The package path and
# "driver=${DRIVER}" are added automatically.
# LABELS: Additional labels to apply to the test. The package path,
# "test-type=run-module-test", and "driver=${DRIVER}" labels are added
# automatically.
# XFAIL_PLATFORMS: List of platforms (see iree_get_platform) for which the
# test is expected to fail. The test pass/fail status is inverted.
# UNSUPPORTED_PLATFORMS: List of platforms (see iree_get_platform) for which
Expand Down

0 comments on commit bb61b19

Please sign in to comment.