Skip to content

Commit

Permalink
[cross-project-tests] Add/update check-* targets for cross-project-tests
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jh7370 committed Jun 28, 2021
1 parent 3827600 commit 2b9ac78
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cross-project-tests/CMakeLists.txt
Expand Up @@ -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")

0 comments on commit 2b9ac78

Please sign in to comment.