From 42eb9d10d89bcf4c2a6d5b8e03954815f1933137 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 26 Jan 2014 12:34:38 +0000 Subject: [PATCH] [CMake][Standalone] Introduce check-all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200143 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33a5599d16..8e93162640 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -436,6 +436,22 @@ if( CLANG_INCLUDE_TESTS ) ) endif() add_subdirectory(test) + + if(CLANG_BUILT_STANDALONE) + # Add a global check rule now that all subdirectories have been traversed + # and we know the total set of lit testsuites. + get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES) + get_property(LLVM_LIT_PARAMS GLOBAL PROPERTY LLVM_LIT_PARAMS) + get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS) + get_property(LLVM_LIT_EXTRA_ARGS GLOBAL PROPERTY LLVM_LIT_EXTRA_ARGS) + add_lit_target(check-all + "Running all regression tests" + ${LLVM_LIT_TESTSUITES} + PARAMS ${LLVM_LIT_PARAMS} + DEPENDS ${LLVM_LIT_DEPENDS} + ARGS ${LLVM_LIT_EXTRA_ARGS} + ) + endif() endif() option(CLANG_INCLUDE_DOCS "Generate build targets for the Clang docs." -- 2.40.0