Home | History | Annotate | Download | only in Unit
      1 ## Autogenerated by LLVM/Clang configuration.
      2 # Do not edit!
      3 
      4 import os
      5 
      6 # Load common config for all compiler-rt unit tests.
      7 lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
      8 
      9 def 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.
     15 config.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.
     20 if @ASAN_TEST_DYNAMIC@:
     21   test_dir = "dynamic"
     22 else:
     23   test_dir = "default"
     24 config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@",
     25                                      "lib", "asan", "tests", test_dir)
     26 
     27 config.test_source_root = config.test_exec_root
     28 
     29 # Set LD_LIBRARY_PATH to pick dynamic runtime up properly.
     30 push_ld_library_path(config, config.compiler_rt_libdir)
     31