Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-03-16 21:46:28 +0300
committerSam McCall <sam.mccall@gmail.com>2022-05-06 13:30:49 +0300
commit7cc8377f2c572a919ecb2d22b2039acf3e6b745a (patch)
treeea9672c2dd46bc2ccb6b7f91cede383aec495242 /compiler-rt
parentf0e8c1d6d99ef686fd381c6af4debc7470876681 (diff)
Generalize "check-all" umbrella targets, use for check-clang-tools
The mechanism behind "check-all" is recording params of add_lit_testsuite() calls in global variables LLVM_LIT_*, and then creating an extra suite with their union at the end. This avoids composing the check-* targets directly, which doesn't work well. We generalize this by allowing multiple families of variables LLVM_{name}_LIT_*: umbrella_lit_testsuite_begin(check-foo) ... test suites here will be added to LLVM_FOO_LIT_* variables ... umbrella_lit_testsuite_end(check-foo) (This also moves some implementation muck out of {llvm,clang}/CMakeLists.txt This patch also changes check-clang-tools to use be an umbrella test target, which means the clangd and clang-pseudo tests are included in it, along with the the other testsuites that already are (like check-clang-extra-clang-tidy). Differential Revision: https://reviews.llvm.org/D121838
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt
index c1434349559a..3cbfc4b0e544 100644
--- a/compiler-rt/test/CMakeLists.txt
+++ b/compiler-rt/test/CMakeLists.txt
@@ -44,6 +44,10 @@ if(NOT ANDROID)
endif()
endif()
+if(COMPILER_RT_STANDALONE_BUILD)
+ umbrella_lit_testsuite_begin(check-compiler-rt)
+endif()
+
function(compiler_rt_test_runtime runtime)
string(TOUPPER ${runtime} runtime_uppercase)
if(COMPILER_RT_HAS_${runtime_uppercase})
@@ -103,15 +107,11 @@ endif()
if(COMPILER_RT_STANDALONE_BUILD)
# Now that we've traversed all the directories and know all the lit testsuites,
# introduce a rule to run to run all of them.
- get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES)
- get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS)
- add_lit_target(check-compiler-rt
- "Running all regression tests"
- ${LLVM_LIT_TESTSUITES}
- DEPENDS ${LLVM_LIT_DEPENDS})
+ add_custom_target(compiler-rt-test-depends DEPENDS ${LLVM_COMPILER_RT_LIT_DEPENDS})
+ umbrella_lit_testsuite_end(check-compiler-rt)
+
if(NOT TARGET check-all)
add_custom_target(check-all)
endif()
- add_custom_target(compiler-rt-test-depends DEPENDS ${LLVM_LIT_DEPENDS})
add_dependencies(check-all check-compiler-rt)
endif()