1## Autogenerated by LLVM/Clang configuration. 2# Do not edit! 3 4import os 5 6# Load common config for all compiler-rt unit tests. 7lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured") 8 9def push_ld_library_path(config, new_path): 10 new_ld_library_path = os.path.pathsep.join( 11 (new_path, config.environment.get('LD_LIBRARY_PATH', ''))) 12 config.environment['LD_LIBRARY_PATH'] = new_ld_library_path 13 14# Setup config name. 15config.name = 'AddressSanitizer-Unit' 16 17# Setup test source and exec root. For unit tests, we define 18# it as build directory with ASan unit tests. 19# FIXME: De-hardcode this path. 20if @ASAN_TEST_DYNAMIC@: 21 test_dir = "dynamic" 22else: 23 test_dir = "default" 24config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@", 25 "lib", "asan", "tests", test_dir) 26 27config.test_source_root = config.test_exec_root 28 29# Set LD_LIBRARY_PATH to pick dynamic runtime up properly. 30push_ld_library_path(config, config.compiler_rt_libdir) 31