[PATCH] D96513: [cross-project-tests] Add/update check-* targets for cross-project-tests - part 5

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 11 07:50:15 PST 2021


jhenderson created this revision.
jhenderson added reviewers: aganea, rnk, dblaikie, Orlando, jmorse, aprantl.
Herald added a subscriber: mgorny.
jhenderson requested review of this revision.
Herald added a project: LLVM.

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).

Depends on D96511 <https://reviews.llvm.org/D96511>. This is the last patch in this stack (for now at least).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96513

Files:
  cross-project-tests/CMakeLists.txt


Index: cross-project-tests/CMakeLists.txt
===================================================================
--- cross-project-tests/CMakeLists.txt
+++ cross-project-tests/CMakeLists.txt
@@ -66,14 +66,22 @@
   ${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")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96513.323017.patch
Type: text/x-patch
Size: 1001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210211/dfa9469f/attachment.bin>


More information about the llvm-commits mailing list