brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 6931314 Raw
34 lines · plain
1@LIT_SITE_CFG_IN_HEADER@2 3import os4import platform5import re6import shlex7 8# Load common config for all compiler-rt unit tests.9lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")10 11# Setup config name.12config.name = 'AddressSanitizer-Unit'13 14# Load target architecture information. Note config.target_triple can be15# incorrect since it is populated with the default target. This unit test suite16# may run for multiple targets. The dynamic suite needs the correct target for17# library path selection.18config.target_arch = "@arch@"19 20# Setup test source and exec root. For unit tests, we define21# it as build directory with ASan unit tests.22# FIXME: De-hardcode this path.23if @ASAN_TEST_DYNAMIC@:24  test_dir = "@CONFIG_NAME_DYNAMIC@"25else:26  test_dir = "@CONFIG_NAME@"27config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@",28                                     "lib", "asan", "tests", test_dir)29 30config.test_source_root = config.test_exec_root31 32if not config.parallelism_group:33  config.parallelism_group = 'shadow-memory'34