3 @SERIALIZED_LIT_PARAMS@
8 config.cxx_under_test = "@CMAKE_CXX_COMPILER@"
9 config.project_obj_root = "@CMAKE_BINARY_DIR@"
10 config.install_root = "@CMAKE_BINARY_DIR@"
11 config.libunwind_src_root = "@LIBUNWIND_SOURCE_DIR@"
12 config.libunwind_obj_root = "@LIBUNWIND_BINARY_DIR@"
13 config.abi_library_root = "@LIBUNWIND_LIBRARY_DIR@"
14 config.libcxx_src_root = "@LIBUNWIND_LIBCXX_PATH@"
15 config.libunwind_headers = "@LIBUNWIND_SOURCE_DIR@/include"
16 config.cxx_library_root = "@LIBUNWIND_LIBCXX_LIBRARY_PATH@"
17 config.llvm_unwinder = True
18 config.builtins_library = "@LIBUNWIND_BUILTINS_LIBRARY@"
19 config.enable_threads = @LIBUNWIND_ENABLE_THREADS@
20 config.target_info = "@LIBUNWIND_TARGET_INFO@"
21 config.test_linker_flags = "@LIBUNWIND_TEST_LINKER_FLAGS@"
22 config.test_compiler_flags = "@LIBUNWIND_TEST_COMPILER_FLAGS@"
23 config.executor = "@LIBUNWIND_EXECUTOR@"
24 config.libunwind_shared = @LIBUNWIND_ENABLE_SHARED@
25 config.enable_shared = @LIBCXX_ENABLE_SHARED@
26 config.arm_ehabi = @LIBUNWIND_USES_ARM_EHABI@
27 config.host_triple = "@LLVM_HOST_TRIPLE@"
28 config.sysroot = "@CMAKE_SYSROOT@"
29 config.gcc_toolchain = "@CMAKE_CXX_COMPILER_EXTERNAL_TOOLCHAIN@"
30 config.cxx_ext_threads = @LIBUNWIND_BUILD_EXTERNAL_THREAD_LIBRARY@
31 config.x86_cet = @LIBUNWIND_ENABLE_CET@
33 site.addsitedir(os.path.join(config.libunwind_src_root, 'test'))
34 site.addsitedir(os.path.join(config.libcxx_src_root, 'utils'))
36 # name: The name of this test suite.
37 config.name = 'libunwind'
39 # suffixes: A list of file extensions to treat as test files.
40 config.suffixes = ['.cpp', '.s']
42 # test_source_root: The root path where tests are located.
43 config.test_source_root = os.path.join(config.libunwind_src_root, 'test')
45 # Allow expanding substitutions that are based on other substitutions
46 config.recursiveExpansionLimit = 10
48 # Infer the test_exec_root from the build directory.
49 config.test_exec_root = os.path.join(config.libunwind_obj_root, 'test')
51 import libcxx.test.format
52 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
54 lit_config.note('Using configuration variant: libunwind')
55 import libunwind.test.config
56 configuration = libunwind.test.config.Configuration(lit_config, config)
57 configuration.configure()
58 configuration.print_config_info()
60 lit_config.warning("This is a legacy testing configuration which will be removed in LLVM 16. "
61 "Please use one of the configurations in libunwind/test/configs or define your own.")