236
|
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
|
|
14 import os, site
|
|
15 site.addsitedir(os.path.join('@LIBUNWIND_LIBCXX_PATH@', 'utils'))
|
|
16 import libcxx.test.format
|
|
17
|
|
18 # Basic configuration of the test suite
|
|
19 config.name = os.path.basename('@LIBUNWIND_TEST_CONFIG@')
|
|
20 config.test_source_root = os.path.join('@LIBUNWIND_SOURCE_DIR@', 'test')
|
|
21 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
|
|
22 config.recursiveExpansionLimit = 10
|
252
|
23 config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
|
236
|
24
|
|
25 # Add a few features that are common to all the configurations
|
|
26 if @LIBUNWIND_USES_ARM_EHABI@:
|
|
27 config.available_features.add('libunwind-arm-ehabi')
|
|
28 if not @LIBUNWIND_ENABLE_THREADS@:
|
|
29 config.available_features.add('libunwind-no-threads')
|
|
30
|
|
31 # Add substitutions for bootstrapping the test suite configuration
|
|
32 import shlex
|
|
33 config.substitutions.append(('%{cxx}', shlex.quote('@CMAKE_CXX_COMPILER@')))
|
|
34 config.substitutions.append(('%{executor}', '@LIBUNWIND_EXECUTOR@'))
|
|
35 config.substitutions.append(('%{include}', '@LIBUNWIND_SOURCE_DIR@/include'))
|
|
36 config.substitutions.append(('%{lib}', '@LIBUNWIND_LIBRARY_DIR@'))
|