Skip to content

Commit 2b9ac78

Browse files
committed
[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
1 parent 3827600 commit 2b9ac78

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cross-project-tests/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,22 @@ configure_lit_site_cfg(
6666
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
6767
)
6868

69-
add_lit_testsuite(check-debuginfo "Running cross-project tests"
69+
add_lit_testsuite(check-cross-project "Running cross-project tests"
7070
${CMAKE_CURRENT_BINARY_DIR}
7171
DEPENDS ${CROSS_PROJECT_TEST_DEPS}
7272
)
7373

74-
# Add check-debuginfo-* targets.
74+
# Add alias for debuginfo test subset.
75+
add_lit_testsuite(check-debuginfo "Running debuginfo tests"
76+
${CMAKE_CURRENT_BINARY_DIR}/debuginfo-tests
77+
EXCLUDE_FROM_CHECK_ALL
78+
DEPENDS ${CROSS_PROJECT_TEST_DEPS}
79+
)
80+
81+
# Add check-cross-project-* targets.
7582
add_lit_testsuites(CROSS_PROJECT ${CMAKE_CURRENT_SOURCE_DIR}
7683
DEPENDS ${CROSS_PROJECT_TEST_DEPS}
7784
)
7885

86+
set_target_properties(check-cross-project PROPERTIES FOLDER "Tests")
7987
set_target_properties(check-debuginfo PROPERTIES FOLDER "Tests")

0 commit comments

Comments
 (0)