[ForwardOpTree] Allow out-of-quota in examination part of forwardTree.
[polly-mirror.git] / test / Unit / lit.cfg
blob315b70e75813ddb4c8eec8eb6d402d92a5a182ef
1 # -*- Python -*-
3 # Configuration file for the 'lit' test runner.
5 import os
6 import platform
8 import lit.formats
9 import lit.util
11 # name: The name of this test suite.
12 config.name = 'Polly-Unit'
14 if not config.has_unittests:
15     raise SystemExit
17 # suffixes: A list of file extensions to treat as test files.
18 config.suffixes = []
20 # test_source_root: The root path where tests are located.
21 # test_exec_root: The root path where tests should be run.
22 config.test_exec_root = os.path.join(config.polly_obj_root, 'unittests')
23 config.test_source_root = config.test_exec_root
25 # testFormat: The test format to use to interpret tests.
26 config.test_format = lit.formats.GoogleTest(config.llvm_build_mode, 'Tests')
28 # Propagate the temp directory. Windows requires this because it uses \Windows\
29 # if none of these are present.
30 if 'TMP' in os.environ:
31     config.environment['TMP'] = os.environ['TMP']
32 if 'TEMP' in os.environ:
33     config.environment['TEMP'] = os.environ['TEMP']
35 # Propagate path to symbolizer for ASan/MSan.
36 for symbolizer in ['ASAN_SYMBOLIZER_PATH', 'MSAN_SYMBOLIZER_PATH']:
37     if symbolizer in os.environ:
38         config.environment[symbolizer] = os.environ[symbolizer]
40 shlibpath_var = ''
41 if platform.system() == 'Linux':
42     shlibpath_var = 'LD_LIBRARY_PATH'
43 elif platform.system() == 'Darwin':
44     shlibpath_var = 'DYLD_LIBRARY_PATH'
45 elif platform.system() == 'Windows':
46     shlibpath_var = 'PATH'
48 # Point the dynamic loader at dynamic libraries in 'lib'.
49 shlibpath = os.path.pathsep.join((config.llvm_libs_dir,
50                                  config.environment.get(shlibpath_var,'')))
52 # Win32 seeks DLLs along %PATH%.
53 if sys.platform in ['win32', 'cygwin'] and os.path.isdir(config.shlibdir):
54     shlibpath = os.path.pathsep.join((config.shlibdir, shlibpath))
56 config.environment[shlibpath_var] = shlibpath