2015-01-30 00:58:29 +08:00
|
|
|
import lit.formats
|
|
|
|
|
|
|
|
config.name = "LLVMFuzzer"
|
|
|
|
config.test_format = lit.formats.ShTest(True)
|
|
|
|
config.suffixes = ['.test']
|
|
|
|
config.test_source_root = os.path.dirname(__file__)
|
2015-02-04 05:57:32 +08:00
|
|
|
|
2015-07-22 06:51:55 +08:00
|
|
|
# Tweak PATH to include llvm tools dir and current exec dir.
|
2015-02-04 05:57:32 +08:00
|
|
|
llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
|
|
|
|
if (not llvm_tools_dir) or (not os.path.exists(llvm_tools_dir)):
|
|
|
|
lit_config.fatal("Invalid llvm_tools_dir config attribute: %r" % llvm_tools_dir)
|
2015-07-22 06:51:55 +08:00
|
|
|
path = os.path.pathsep.join((llvm_tools_dir, config.test_exec_root,
|
|
|
|
config.environment['PATH']))
|
2015-02-04 05:57:32 +08:00
|
|
|
config.environment['PATH'] = path
|
|
|
|
|