Lines Matching +full:llvm +full:- +full:test
1 # Test runner infrastructure for LLDB. This configures the LLDB test trees
2 # for use by Lit, and delegates to LLVM's lit test handlers.
7 "LLDB test suite requires a Python3 interpreter but none "
13 message(STATUS "Enforcing strict test requirements for LLDB")
14 # Lit uses psutil to do per-test timeouts.
35 # In order to run check-lldb-* we need the correct map_config directives in
36 # llvm-lit. Because this is a standalone build, LLVM doesn't know about LLDB,
37 # and the lldb mappings are missing. We build our own llvm-lit, and tell LLVM
38 # to use the llvm-lit in the lldb build directory.
39 if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-lit)
40 set(LLVM_EXTERNAL_LIT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/llvm-lit)
50 set(LLDB_TEST_BUILD_DIRECTORY "${PROJECT_BINARY_DIR}/lldb-test-build.noindex" CACHE PATH "The build root for building tests.")
53 set(LLDB_TEST_MODULE_CACHE_LLDB "${LLDB_TEST_BUILD_DIRECTORY}/module-cache-lldb" CACHE PATH "The Clang module cache used by the Clang embedded in LLDB while running tests.")
54 set(LLDB_TEST_MODULE_CACHE_CLANG "${LLDB_TEST_BUILD_DIRECTORY}/module-cache-clang" CACHE PATH "The Clang module cache used by the Clang while building tests.")
58 # Windows and Linux have no built-in ObjC runtime. Turn this on in order to run tests with GNUstep.
59 option(LLDB_TEST_OBJC_GNUSTEP "Enable ObjC tests with GNUstep libobjc2 on non-Apple platforms" Off)
92 # Create a custom target to track test dependencies.
93 add_custom_target(lldb-test-depends)
94 set_target_properties(lldb-test-depends PROPERTIES FOLDER "LLDB/Tests")
96 # Create an alias for the legacy name of lldb-test-depends
97 add_custom_target(lldb-test-deps)
98 set_target_properties(lldb-test-deps PROPERTIES FOLDER "LLDB/Tests")
99 add_dependencies(lldb-test-deps lldb-test-depends)
103 add_dependencies(lldb-test-depends ${dependency})
107 # lldb itself and lldb-test is an hard dependency for the testsuites.
109 add_lldb_test_dependency(lldb-test)
111 # On Darwin, darwin-debug is an hard dependency for the testsuites.
113 add_lldb_test_dependency(darwin-debug)
119 if(TARGET lldb-server)
120 add_lldb_test_dependency(lldb-server)
123 if(TARGET lldb-dap)
124 add_lldb_test_dependency(lldb-dap)
131 if(TARGET lldb-framework)
132 add_lldb_test_dependency(lldb-framework)
141 llvm-strip
143 split-file
152 # Add dependencies if we test with the in-tree clang.
172 if (TARGET compiler-rt OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES)
190 "test-suite for a standalone LLDB build please build libcxx and point "
194 # We require libcxx for the test suite, so if we aren't building it,
198 "LLDB test suite requires libc++, but it is currently disabled. "
211 lit-cpuid
214 llvm-config
215 llvm-dwarfdump
216 llvm-dwp
217 llvm-nm
218 llvm-mc
219 llvm-objcopy
220 llvm-pdbutil
221 llvm-readobj
222 llvm-ar
228 # LLD is required to link test executables on Windows.
230 message(WARNING "lld required to test LLDB on Windows")
240 # These values are not canonicalized within LLVM.
254 # Configure the individual test suites.
259 # Configure the top level test suite.
266 add_lit_testsuite(check-lldb "Running lldb lit test suite"
269 lldb-api-test-deps
270 lldb-shell-test-deps
271 lldb-unit-test-deps)
275 if (EXISTS ${LLVM_MAIN_SRC_DIR}/utils/llvm-lit)
276 # LLVM's make_paths_relative uses Python3_EXECUTABLE which isn't set in a
279 add_subdirectory(${LLVM_MAIN_SRC_DIR}/utils/llvm-lit ${CMAKE_CURRENT_BINARY_DIR}/llvm-lit)