1 llvm_canonicalize_cmake_booleans(
15 LLVM_USE_INTEL_JITEVENTS
18 LLVM_BYE_LINK_INTO_TOOLS
19 LLVM_EXAMPLEIRTRANSFORMS_LINK_INTO_TOOLS
22 LLVM_INLINER_MODEL_AUTOGENERATED
23 LLVM_RAEVICT_MODEL_AUTOGENERATED
24 LLVM_ENABLE_EXPENSIVE_CHECKS
25 LLVM_INCLUDE_DXIL_TESTS
26 LLVM_TOOL_LLVM_DRIVER_BUILD
29 configure_lit_site_cfg(
30 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
31 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
33 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
42 configure_lit_site_cfg(
43 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in
44 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py
46 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py
54 # Set the depends list as a variable so that it can grow conditionally.
55 # NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
81 llvm-debuginfo-analyzer
95 llvm-install-name-tool
122 llvm-remark-size-diff
150 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-lto)
153 if(TARGET llvm-driver)
154 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-driver)
157 # If Intel JIT events are supported, depend on a tool that tests the listener.
158 if( LLVM_USE_INTEL_JITEVENTS )
159 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
160 endif( LLVM_USE_INTEL_JITEVENTS )
163 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
167 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
170 if(LLVM_BUILD_EXAMPLES)
171 list(APPEND LLVM_TEST_DEPENDS
177 LLJITWithThinLTOSummaries
178 OrcV2CBindingsBasicUsage
179 OrcV2CBindingsAddObjectFile
180 OrcV2CBindingsRemovableCode
182 OrcV2CBindingsVeryLazy
185 list(APPEND LLVM_TEST_DEPENDS
186 LLJITWithRemoteDebugging
190 list(APPEND LLVM_TEST_DEPENDS
197 if(TARGET ocaml_llvm)
198 # Clear all non-OCaml cross-target dependencies when building out-of-tree.
199 if(LLVM_OCAML_OUT_OF_TREE)
200 set(LLVM_TEST_DEPENDS)
203 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
205 ocaml_llvm_all_backends
209 ocaml_llvm_executionengine
213 ocaml_llvm_transform_utils
217 if (LLVM_INCLUDE_DXIL_TESTS)
218 list(APPEND LLVM_TEST_DEPENDS dxil-dis)
221 if(LLVM_ENABLE_HTTPLIB)
222 list(APPEND LLVM_TEST_DEPENDS llvm-debuginfod)
225 add_custom_target(llvm-test-depends DEPENDS ${LLVM_TEST_DEPENDS})
226 set_target_properties(llvm-test-depends PROPERTIES FOLDER "Tests")
229 set(exclude_from_check_all "")
231 set(exclude_from_check_all "EXCLUDE_FROM_CHECK_ALL")
234 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
235 ${CMAKE_CURRENT_BINARY_DIR}
236 ${exclude_from_check_all}
237 DEPENDS ${LLVM_TEST_DEPENDS}
239 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
241 add_lit_testsuites(LLVM ${CMAKE_CURRENT_SOURCE_DIR}
242 ${exclude_from_check_all}
243 DEPENDS ${LLVM_TEST_DEPENDS}
244 FOLDER "Tests/Subdirectories"
247 # Setup an alias for 'check-all'.
248 add_custom_target(check)
249 add_dependencies(check check-all)
250 set_target_properties(check PROPERTIES FOLDER "Tests")