Compiler projects using llvm
import lit.formats
config.name = 'use-llvm-tool-required'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()
config.test_source_root = None
config.test_exec_root = None
import os.path
config.llvm_tools_dir = os.path.realpath(os.path.dirname(__file__))
import lit.llvm
lit.llvm.initialize(lit_config, config)
lit.llvm.llvm_config.use_llvm_tool('found', required=True)
lit.llvm.llvm_config.use_llvm_tool('not-found', required=True)