3 @SERIALIZED_LIT_PARAMS@
6 # This file performs the bridge between the CMake configuration and the Lit
7 # configuration files by setting up the LitConfig object and various Lit
8 # substitutions from CMake variables.
10 # Individual configuration files can take advantage of this bridge by
11 # loading the file and then setting up the remaining Lit substitutions.
15 site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
16 import libcxx.test.format
18 # Basic configuration of the test suite
19 config.name = os.path.basename('@LIBCXX_TEST_CONFIG@')
20 config.test_source_root = os.path.join('@LIBCXX_SOURCE_DIR@', 'test')
21 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
22 config.recursiveExpansionLimit = 10
23 config.test_exec_root = os.path.join('@LIBCXX_BINARY_DIR@', 'test')
25 # Add substitutions for bootstrapping the test suite configuration
26 config.substitutions.append(('%{libcxx-dir}', '@LIBCXX_SOURCE_DIR@'))
27 config.substitutions.append(('%{install-prefix}', '@LIBCXX_TESTING_INSTALL_PREFIX@'))
28 config.substitutions.append(('%{include-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_INCLUDE_DIR@'))
29 config.substitutions.append(('%{target-include-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_INCLUDE_TARGET_DIR@'))
30 config.substitutions.append(('%{lib-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_LIBRARY_DIR@'))
31 config.substitutions.append(('%{module-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_MODULES_DIR@'))
32 config.substitutions.append(('%{test-tools-dir}', '@LIBCXX_TEST_TOOLS_PATH@'))
33 config.substitutions.append(('%{benchmark_flags}', '-I @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/include -L @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/lib -L @LIBCXX_BINARY_DIR@/test/benchmarks/google-benchmark/lib64 -l benchmark'))