diff options
author | James Henderson <james.henderson@sony.com> | 2021-02-10 14:16:45 +0000 |
---|---|---|
committer | James Henderson <james.henderson@sony.com> | 2021-06-28 11:31:41 +0100 |
commit | 2b9ac789ecdb2f8fd23c5af9be72e05191dbbae2 (patch) | |
tree | 48551e43553dce04c3f1c1a58989bcfb13f3afa0 /cross-project-tests/CMakeLists.txt | |
parent | 3827600ff3f78b788b910ea1ebc6f86b132b6048 (diff) | |
download | llvm-2b9ac789ecdb2f8fd23c5af9be72e05191dbbae2.tar.gz |
[cross-project-tests] Add/update check-* targets for cross-project-tests
This change modifies the existing check-debuginfo target to only run the
debuginfo tests within the cross-project-tests, and adds a new target
(check-cross-project) which runs all the tests. The former has also been
modified to not be included in check-all (since the check-cross-project
target covers them).
Differential Revision: https://reviews.llvm.org/D96513
Reviewed by: aprantl
Diffstat (limited to 'cross-project-tests/CMakeLists.txt')
-rw-r--r-- | cross-project-tests/CMakeLists.txt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cross-project-tests/CMakeLists.txt b/cross-project-tests/CMakeLists.txt index a4ae34d70227..f3345099190b 100644 --- a/cross-project-tests/CMakeLists.txt +++ b/cross-project-tests/CMakeLists.txt @@ -66,14 +66,22 @@ configure_lit_site_cfg( ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py ) -add_lit_testsuite(check-debuginfo "Running cross-project tests" +add_lit_testsuite(check-cross-project "Running cross-project tests" ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CROSS_PROJECT_TEST_DEPS} ) -# Add check-debuginfo-* targets. +# Add alias for debuginfo test subset. +add_lit_testsuite(check-debuginfo "Running debuginfo tests" + ${CMAKE_CURRENT_BINARY_DIR}/debuginfo-tests + EXCLUDE_FROM_CHECK_ALL + DEPENDS ${CROSS_PROJECT_TEST_DEPS} + ) + +# Add check-cross-project-* targets. add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS ${CROSS_PROJECT_TEST_DEPS} ) +set_target_properties(check-cross-project PROPERTIES FOLDER "Tests") set_target_properties(check-debuginfo PROPERTIES FOLDER "Tests") |