Lines Matching refs:tool_dict
55 def is_interesting(f, tool_dict): argument
60 return str(path) in tool_dict['interesting_files']
71 def command_line_for_tool(tool_dict, output): argument
75 proc_args = [tool_dict['tool']] + tool_dict['args'](output)
78 def run_tool(tool_dict, output): argument
82 proc_args = command_line_for_tool(tool_dict, output)
87 def get_reference_file(changed_file, tool_dict): argument
91 return tool_dict['interesting_to_reference_file'](changed_file, tool_dict['reference_files'])
93 def run_diff(changed_file, tool_dict, original_file): argument
94 ref_file = get_reference_file(changed_file, tool_dict)
108 for tool_dict in TOOLS_GEN_SRCS:
111 if is_interesting(f, tool_dict):
113 reference_file = get_reference_file(f, tool_dict)
116 success = run_tool(tool_dict, tmp_file)
120 print("$> %s" %(" ".join(command_line_for_tool(tool_dict, tmp_file))), file=sys.stderr)
122 if run_diff(f, tool_dict, tmp_file):
128 … print("$> %s" %(" ".join(command_line_for_tool(tool_dict, reference_file))), file=sys.stderr)
130 debug_print("File %s is consistent with tool %s" %(reference_file, tool_dict['tool']))
135 …("Interesting files %s unchanged, skipping tool '%s'" %(tool_dict['interesting_files'], tool_dict[…