• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@AUTO_GEN_COMMENT@
2
3@SERIALIZED_LIT_PARAMS@
4
5#
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.
9#
10# Individual configuration files can take advantage of this bridge by
11# loading the file and then setting up the remaining Lit substitutions.
12#
13
14import os, site
15site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
16import libcxx.test.format
17
18# Basic configuration of the test suite
19config.name = os.path.basename('@LIBCXX_TEST_CONFIG@')
20config.test_source_root = os.path.join('@LIBCXX_SOURCE_DIR@', 'test')
21config.test_format = libcxx.test.format.CxxStandardLibraryTest()
22config.recursiveExpansionLimit = 10
23config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
24
25# Add substitutions for bootstrapping the test suite configuration
26import shlex
27config.substitutions.append(('%{cxx}', shlex.quote('@CMAKE_CXX_COMPILER@')))
28config.substitutions.append(('%{libcxx}', '@LIBCXX_SOURCE_DIR@'))
29config.substitutions.append(('%{include}', '@LIBCXX_GENERATED_INCLUDE_DIR@'))
30config.substitutions.append(('%{target-include}', '@LIBCXX_GENERATED_INCLUDE_TARGET_DIR@'))
31config.substitutions.append(('%{lib}', '@LIBCXX_LIBRARY_DIR@'))
32config.substitutions.append(('%{executor}', '@LIBCXX_EXECUTOR@'))
33config.substitutions.append(('%{test-tools}', '@LIBCXX_TEST_TOOLS_PATH@'))
34