annotate libunwind/test/configs/cmake-bridge.cfg.in @ 265:31d058e83c98 current

fix llvm again
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:49 +0900
parents 1f2b6ac9f198
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
1 @AUTO_GEN_COMMENT@
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
2
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
3 @SERIALIZED_LIT_PARAMS@
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
4
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
5 #
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
6 # This file performs the bridge between the CMake configuration and the Lit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
7 # configuration files by setting up the LitConfig object and various Lit
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
8 # substitutions from CMake variables.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
9 #
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
10 # Individual configuration files can take advantage of this bridge by
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
11 # loading the file and then setting up the remaining Lit substitutions.
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
12 #
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
13
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
14 import os, site
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
15 site.addsitedir(os.path.join('@LIBUNWIND_LIBCXX_PATH@', 'utils'))
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
16 import libcxx.test.format
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
17
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
18 # Basic configuration of the test suite
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
19 config.name = os.path.basename('@LIBUNWIND_TEST_CONFIG@')
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
20 config.test_source_root = os.path.join('@LIBUNWIND_SOURCE_DIR@', 'test')
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
21 config.test_format = libcxx.test.format.CxxStandardLibraryTest()
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
22 config.recursiveExpansionLimit = 10
252
1f2b6ac9f198 LLVM16-1
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 236
diff changeset
23 config.test_exec_root = os.path.join('@CMAKE_BINARY_DIR@', 'test')
236
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
24
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
25 # Add a few features that are common to all the configurations
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
26 if @LIBUNWIND_USES_ARM_EHABI@:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
27 config.available_features.add('libunwind-arm-ehabi')
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
28 if not @LIBUNWIND_ENABLE_THREADS@:
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
29 config.available_features.add('libunwind-no-threads')
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
30
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
31 # Add substitutions for bootstrapping the test suite configuration
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
32 import shlex
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
33 config.substitutions.append(('%{cxx}', shlex.quote('@CMAKE_CXX_COMPILER@')))
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
34 config.substitutions.append(('%{executor}', '@LIBUNWIND_EXECUTOR@'))
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
35 config.substitutions.append(('%{include}', '@LIBUNWIND_SOURCE_DIR@/include'))
c4bab56944e8 LLVM 16
kono
parents:
diff changeset
36 config.substitutions.append(('%{lib}', '@LIBUNWIND_LIBRARY_DIR@'))