brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 20b7c1e Raw
38 lines · plain
1@AUTO_GEN_COMMENT@2 3@SERIALIZED_LIT_PARAMS@4 5#6# This file performs the bridge between the CMake configuration and the Lit7# configuration files by setting up the LitConfig object and various Lit8# substitutions from CMake variables.9#10# Individual configuration files can take advantage of this bridge by11# loading the file and then setting up the remaining Lit substitutions.12#13 14import os, site15import shlex16import sys17site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))18import libcxx.test.format19 20# Basic configuration of the test suite21config.name = os.path.basename('@LIBCXX_TEST_CONFIG@')22config.test_source_root = os.path.join('@LIBCXX_SOURCE_DIR@', 'test')23config.test_format = libcxx.test.format.CxxStandardLibraryTest()24config.recursiveExpansionLimit = 1025config.test_exec_root = os.path.join('@LIBCXX_BINARY_DIR@', 'test')26 27# Add substitutions for bootstrapping the test suite configuration28config.substitutions.append(('%{bin-dir}', '@LIBCXX_BINARY_DIR@'))29config.substitutions.append(('%{libcxx-dir}', '@LIBCXX_SOURCE_DIR@'))30config.substitutions.append(('%{install-prefix}', '@LIBCXX_TESTING_INSTALL_PREFIX@'))31config.substitutions.append(('%{include-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_INCLUDE_DIR@'))32config.substitutions.append(('%{target-include-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_INCLUDE_TARGET_DIR@'))33config.substitutions.append(('%{lib-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_LIBRARY_DIR@'))34config.substitutions.append(('%{module-dir}', '@LIBCXX_TESTING_INSTALL_PREFIX@/@LIBCXX_INSTALL_MODULES_DIR@'))35config.substitutions.append(('%{test-tools-dir}', '@LIBCXX_TEST_TOOLS_PATH@'))36config.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'))37config.substitutions.append(("%{python}", shlex.quote(sys.executable)))38