[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / compiler-rt / test / asan / Unit / lit.site.cfg.py.in
blob69313142ad58e468b38ef66aea444ebb45fb6d04
1 @LIT_SITE_CFG_IN_HEADER@
3 import os
4 import platform
5 import re
6 import shlex
8 # Load common config for all compiler-rt unit tests.
9 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
11 # Setup config name.
12 config.name = 'AddressSanitizer-Unit'
14 # Load target architecture information. Note config.target_triple can be
15 # incorrect since it is populated with the default target. This unit test suite
16 # may run for multiple targets. The dynamic suite needs the correct target for
17 # library path selection.
18 config.target_arch = "@arch@"
20 # Setup test source and exec root. For unit tests, we define
21 # it as build directory with ASan unit tests.
22 # FIXME: De-hardcode this path.
23 if @ASAN_TEST_DYNAMIC@:
24 test_dir = "@CONFIG_NAME_DYNAMIC@"
25 else:
26 test_dir = "@CONFIG_NAME@"
27 config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@",
28 "lib", "asan", "tests", test_dir)
30 config.test_source_root = config.test_exec_root
32 if not config.parallelism_group:
33 config.parallelism_group = 'shadow-memory'