llvm.org GIT mirror llvm / 64835d2
[CMake] add_lit_testsuite: EXCLUDE_FROM_ALL excludes the test ${target} out of check-all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165618 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 7 years ago
1 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
283283 function(add_lit_testsuite target comment)
284284 parse_arguments(ARG "PARAMS;DEPENDS;ARGS" "" ${ARGN})
285285
286 # Register the testsuites, params and depends for the global check rule.
287 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_TESTSUITES ${ARG_DEFAULT_ARGS})
288 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_PARAMS ${ARG_PARAMS})
289 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS ${ARG_DEPENDS})
290 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_EXTRA_ARGS ${ARG_ARGS})
286 # EXCLUDE_FROM_ALL excludes the test ${target} out of check-all.
287 if(NOT EXCLUDE_FROM_ALL)
288 # Register the testsuites, params and depends for the global check rule.
289 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_TESTSUITES ${ARG_DEFAULT_ARGS})
290 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_PARAMS ${ARG_PARAMS})
291 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS ${ARG_DEPENDS})
292 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_EXTRA_ARGS ${ARG_ARGS})
293 endif()
291294
292295 # Produce a specific suffixed check rule.
293296 add_lit_target(${target} ${comment}