llvm/llvm/utils/lit/tests/Inputs/lld-features/lit.cfg

import lit.formats

config.name = "search-env"
config.suffixes = [".txt"]
config.test_format = lit.formats.ShTest()
config.test_source_root = None
config.test_exec_root = None
config.llvm_tools_dir = ""
import lit.llvm

lit.llvm.initialize(lit_config, config)
import os.path

curdir = os.path.dirname(__file__)
# The current directory contains files for each version of LLD, both with and
# without a .exe extension. The .exe versions will be found on Windows and the
# ones without will be found on Linux. Note that all files are just empty files,
# since the test doesn't actually use them.
lit.llvm.llvm_config.with_environment("PATH", curdir, append_path=True)
lit.llvm.llvm_config.use_lld(use_installed=True)