3 config.name = "search-env"
4 config.suffixes = [".txt"]
5 config.test_format = lit.formats.ShTest()
6 config.test_source_root = None
7 config.test_exec_root = None
8 config.llvm_tools_dir = ""
11 lit.llvm.initialize(lit_config, config)
14 curdir = os.path.dirname(__file__)
15 # The current directory contains files for each version of LLD, both with and
16 # without a .exe extension. The .exe versions will be found on Windows and the
17 # ones without will be found on Linux. Note that all files are just empty files,
18 # since the test doesn't actually use them.
19 lit.llvm.llvm_config.with_environment("PATH", curdir, append_path=True)
20 lit.llvm.llvm_config.use_lld(use_installed=True)