Home | History | Annotate | Download | only in lib
      1 # -*- Python -*-
      2 
      3 # Configuration file for 'lit' test runner.
      4 # This file contains common config setup rules for unit tests in various
      5 # compiler-rt testsuites.
      6 
      7 import os
      8 
      9 # Setup test format
     10 llvm_build_mode = getattr(config, "llvm_build_mode", "Debug")
     11 config.test_format = lit.formats.GoogleTest(llvm_build_mode, "Test")
     12 
     13 # Setup test suffixes.
     14 config.suffixes = []
     15 
     16 # Propagate the temp directory. Windows requires this because it uses \Windows\
     17 # if none of these are present.
     18 if 'TMP' in os.environ:
     19     config.environment['TMP'] = os.environ['TMP']
     20 if 'TEMP' in os.environ:
     21     config.environment['TEMP'] = os.environ['TEMP']
     22