1 @LIT_SITE_CFG_IN_HEADER@
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")
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@"
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'