26 lines · plain
1@LIT_SITE_CFG_IN_HEADER@2 3# Load common config for all compiler-rt unit tests.4lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")5 6# Setup config name.7config.name = 'RealtimeSanitizer-Unit'8 9# Setup test source and exec root. For unit tests, we define10# it as build directory with ASan unit tests.11# FIXME: De-hardcode this path.12config.test_exec_root = "@COMPILER_RT_BINARY_DIR@/lib/rtsan/tests"13config.test_source_root = config.test_exec_root14 15if not config.parallelism_group:16 config.parallelism_group = 'shadow-memory'17 18if config.target_os == 'Darwin':19 # On Darwin, we default to ignore_noninstrumented_modules=1, which also20 # suppresses some races the tests are supposed to find. See rtsan/lit.cfg.py.21 if 'RTSAN_OPTIONS' in config.environment:22 config.environment['RTSAN_OPTIONS'] += ':ignore_noninstrumented_modules=0'23 else:24 config.environment['RTSAN_OPTIONS'] = 'ignore_noninstrumented_modules=0'25 config.environment['RTSAN_OPTIONS'] += ':ignore_interceptors_accesses=0'26