llvm.org GIT mirror llvm / 816c475
[CMake] Connecting check-all and test-depends targets correctly My previous attempt at this connected the sub-project check targets to the test-depends target instead of to the check-all target. That resulted in the tests running multiple times on bots that built "test-depends" and "check-all" in separate build invocations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280392 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
2 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
821821 get_property(LLVM_LIT_PARAMS GLOBAL PROPERTY LLVM_LIT_PARAMS)
822822 get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS)
823823 get_property(LLVM_LIT_EXTRA_ARGS GLOBAL PROPERTY LLVM_LIT_EXTRA_ARGS)
824 get_property(LLVM_ADDITIONAL_TEST_TARGETS
825 GLOBAL PROPERTY LLVM_ADDITIONAL_TEST_TARGETS)
826 get_property(LLVM_ADDITIONAL_TEST_DEPENDS
827 GLOBAL PROPERTY LLVM_ADDITIONAL_TEST_DEPENDS)
824828 add_lit_target(check-all
825829 "Running all regression tests"
826830 ${LLVM_LIT_TESTSUITES}
827831 PARAMS ${LLVM_LIT_PARAMS}
828 DEPENDS ${LLVM_LIT_DEPENDS}
832 DEPENDS ${LLVM_LIT_DEPENDS} ${LLVM_ADDITIONAL_TEST_TARGETS}
829833 ARGS ${LLVM_LIT_EXTRA_ARGS}
830834 )
831835 if(TARGET check-runtimes)
832836 add_dependencies(check-all check-runtimes)
833837 endif()
834 add_custom_target(test-depends DEPENDS ${LLVM_LIT_DEPENDS})
838 add_custom_target(test-depends
839 DEPENDS ${LLVM_LIT_DEPENDS} ${LLVM_ADDITIONAL_TEST_DEPENDS})
835840 set_target_properties(test-depends PROPERTIES FOLDER "Tests")
836841 endif()
837842
193193 ${SUB_INSTALL_TARGETS}
194194 USE_TOOLCHAIN)
195195 if(LLVM_INCLUDE_TESTS)
196 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS runtimes-test-depends)
196 set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_DEPENDS runtimes-test-depends)
197 set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_TARGETS check-runtimes)
197198 endif()
198199 endif()
199200 endif()