[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / compiler-rt / test / memprof / Unit / lit.site.cfg.py.in
blob1e2442a1487a4373ba3e0d0f4d39751ef11a7387
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 = 'MemProfiler-Unit'
13 config.target_arch = "@arch@"
14 assert config.target_arch == 'x86_64'
16 config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@",
17 "lib", "memprof", "tests")
19 config.test_source_root = config.test_exec_root
21 # When LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on, the initial value of
22 # config.compiler_rt_libdir (COMPILER_RT_RESOLVED_LIBRARY_OUTPUT_DIR) has the
23 # host triple as the trailing path component. The value is incorrect for i386
24 # tests on x86_64 hosts and vice versa. But, since only x86_64 is enabled as
25 # target, and we don't support different environments for building and,
26 # respectively, running tests, we we only need to fix up the x86_64 case.
27 if config.enable_per_target_runtime_dir and config.target_arch != config.host_arch:
28 config.compiler_rt_libdir = re.sub(r'/i386(?=-[^/]+$)', '/x86_64', config.compiler_rt_libdir)
30 if not config.parallelism_group:
31 config.parallelism_group = 'shadow-memory'