2021-10-01 01:23:39 +08:00
|
|
|
@AUTO_GEN_COMMENT@
|
|
|
|
|
|
|
|
@SERIALIZED_LIT_PARAMS@
|
|
|
|
|
2021-12-09 02:54:21 +08:00
|
|
|
import shlex
|
|
|
|
|
2021-10-01 01:23:39 +08:00
|
|
|
#
|
|
|
|
# This file performs the bridge between the CMake configuration and the Lit
|
|
|
|
# configuration files by setting up the LitConfig object and various Lit
|
|
|
|
# substitutions from CMake variables.
|
|
|
|
#
|
|
|
|
# Individual configuration files can take advantage of this bridge by
|
|
|
|
# loading the file and then setting up the remaining Lit substitutions.
|
|
|
|
#
|
|
|
|
|
|
|
|
import os, site
|
|
|
|
site.addsitedir(os.path.join('@LIBCXX_SOURCE_DIR@', 'utils'))
|
|
|
|
import libcxx.test.format
|
|
|
|
|
|
|
|
# Basic configuration of the test suite
|
|
|
|
config.name = os.path.basename('@LIBCXX_TEST_CONFIG@')
|
|
|
|
config.test_source_root = os.path.join('@LIBCXX_SOURCE_DIR@', 'test')
|
|
|
|
config.test_format = libcxx.test.format.CxxStandardLibraryTest()
|
|
|
|
config.recursiveExpansionLimit = 10
|
2022-02-24 18:38:26 +08:00
|
|
|
config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
|
2021-10-01 01:23:39 +08:00
|
|
|
|
|
|
|
# Add substitutions for bootstrapping the test suite configuration
|
2021-12-09 02:54:21 +08:00
|
|
|
config.substitutions.append(('%{cxx}', shlex.quote('@CMAKE_CXX_COMPILER@')))
|
2021-10-01 01:23:39 +08:00
|
|
|
config.substitutions.append(('%{libcxx}', '@LIBCXX_SOURCE_DIR@'))
|
2022-03-15 22:49:49 +08:00
|
|
|
config.substitutions.append(('%{include}', '@LIBCXX_GENERATED_INCLUDE_DIR@'))
|
|
|
|
config.substitutions.append(('%{target-include}', '@LIBCXX_GENERATED_INCLUDE_TARGET_DIR@'))
|
|
|
|
config.substitutions.append(('%{lib}', '@LIBCXX_LIBRARY_DIR@'))
|
2021-12-09 05:29:18 +08:00
|
|
|
config.substitutions.append(('%{executor}', '@LIBCXX_EXECUTOR@'))
|