• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import lit.formats
2
3config.name = "LLVMFuzzer"
4config.test_format = lit.formats.ShTest(True)
5config.suffixes = ['.test']
6config.test_source_root = os.path.dirname(__file__)
7
8# Tweak PATH to include llvm tools dir.
9llvm_tools_dir = getattr(config, 'llvm_tools_dir', None)
10if (not llvm_tools_dir) or (not os.path.exists(llvm_tools_dir)):
11  lit_config.fatal("Invalid llvm_tools_dir config attribute: %r" % llvm_tools_dir)
12path = os.path.pathsep.join((llvm_tools_dir, config.environment['PATH']))
13config.environment['PATH'] = path
14
15