1 configure_lit_site_cfg(
2 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
3 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
5 configure_lit_site_cfg(
6 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
7 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
10 # Don't include check-llvm into check-all without LLVM_BUILD_TOOLS.
11 if(NOT LLVM_BUILD_TOOLS)
12 set(EXCLUDE_FROM_ALL ON)
15 # Set the depends list as a variable so that it can grow conditionally.
16 # NOTE: Sync the substitutions in test/lit.cfg when adding to this list.
60 # If Intel JIT events are supported, depend on a tool that tests the listener.
61 if( LLVM_USE_INTEL_JITEVENTS )
62 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-jitlistener)
63 endif( LLVM_USE_INTEL_JITEVENTS )
66 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
70 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
74 set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS}
76 ocaml_llvm_all_backends
80 ocaml_llvm_executionengine
85 ocaml_llvm_passmgr_builder
86 ocaml_llvm_scalar_opts
87 ocaml_llvm_transform_utils
92 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
93 ${CMAKE_CURRENT_BINARY_DIR}
94 PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
95 llvm_unit_site_config=${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg
96 DEPENDS ${LLVM_TEST_DEPENDS}
98 set_target_properties(check-llvm PROPERTIES FOLDER "Tests")
100 # Setup a legacy alias for 'check-llvm'. This will likely change to be an
101 # alias for 'check-all' at some point in the future.
102 add_custom_target(check)
103 add_dependencies(check check-llvm)
104 set_target_properties(check PROPERTIES FOLDER "Tests")