3 # Configuration file for the 'lit' test runner.
9 # name: The name of this test suite.
10 config
.name
= 'lld-Unit'
12 # suffixes: A list of file extensions to treat as test files.
15 # test_source_root: The root path where unit test binaries are located.
16 # test_exec_root: The root path where tests should be run.
17 config
.test_source_root
= os
.path
.join(config
.lld_obj_root
, 'unittests')
18 config
.test_exec_root
= config
.test_source_root
21 # Tweak the PATH to include the tools dir.
22 path
= os
.path
.pathsep
.join((config
.lld_tools_dir
, config
.llvm_tools_dir
, config
.environment
['PATH']))
23 config
.environment
['PATH'] = path
25 path
= os
.path
.pathsep
.join((config
.lld_libs_dir
, config
.llvm_libs_dir
,
26 config
.environment
.get('LD_LIBRARY_PATH','')))
27 config
.environment
['LD_LIBRARY_PATH'] = path
29 # Propagate LLVM_SRC_ROOT into the environment.
30 config
.environment
['LLVM_SRC_ROOT'] = config
.llvm_src_root
32 # Propagate PYTHON_EXECUTABLE into the environment
33 config
.environment
['PYTHON_EXECUTABLE'] = sys
.executable
36 # testFormat: The test format to use to interpret tests.
37 config
.test_format
= lit
.formats
.GoogleTest(config
.llvm_build_mode
, 'Tests')