r200143 - [CMake][Standalone] Introduce check-all.
NAKAMURA Takumi
geek4civic at gmail.com
Sun Jan 26 04:34:41 PST 2014
Author: chapuni
Date: Sun Jan 26 06:34:38 2014
New Revision: 200143
URL: http://llvm.org/viewvc/llvm-project?rev=200143&view=rev
Log:
[CMake][Standalone] Introduce check-all.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=200143&r1=200142&r2=200143&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Sun Jan 26 06:34:38 2014
@@ -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."
More information about the cfe-commits
mailing list