Lines Matching refs:common
34 from UpdateTestChecks import common
55 initial_args = common.parse_commandline_args(parser)
60 common.error('Unexpected opt name: ' + opt_basename)
64 for ti in common.itertests(initial_args.tests, parser,
68 common.SCRUB_TRAILING_WHITESPACE_TEST_RE = common.SCRUB_TRAILING_WHITESPACE_AND_ATTRIBUTES_RE
70 common.SCRUB_TRAILING_WHITESPACE_TEST_RE = common.SCRUB_TRAILING_WHITESPACE_RE
75 common.warn('Skipping unparseable RUN line: ' + l)
85 common.verify_filecheck_prefixes(filecheck_cmd)
87 common.warn('Skipping non-%s RUN line: %s' % (opt_basename, l))
91 common.warn('Skipping non-FileChecked RUN line: ' + l)
98 common.CHECK_PREFIX_RE.finditer(filecheck_cmd)
108 builder = common.FunctionTestBuilder(
115 common.debug('Extracted opt cmd: ' + opt_basename + ' ' + opt_args)
116 common.debug('Extracted FileCheck prefixes: ' + str(prefixes))
118 raw_tool_output = common.invoke_tool(ti.args.opt_binary, opt_args,
121 builder.process_run_line(common.OPT_FUNCTION_RE, common.scrub_body,
130 common.debug('Rewriting FileCheck prefixes:', str(prefix_set))
133 include_generated_funcs = common.find_arg_in_test(ti,
146 common.dump_input_lines(output_lines, ti, prefix_set, ';')
150 …common.add_global_checks(builder.global_var_dict(), ';', prefix_list, output_lines, global_vars_se…
153 common.add_checks_at_end(output_lines, prefix_list, builder.func_order(),
155 common.add_ir_checks(my_output_lines, ';',
170 m = common.CHECK_RE.match(input_line)
176 common.add_ir_checks(output_lines, ';', prefix_list, func_dict,
182 m = common.IR_FUNCTION_RE.match(input_line)
185 …common.add_global_checks(builder.global_var_dict(), ';', prefix_list, output_lines, global_vars_se…
188 if common.should_add_line_to_output(input_line, prefix_set, not is_in_function):
191 input_line = common.SCRUB_LEADING_WHITESPACE_RE.sub(r' ', input_line)
200 m = common.IR_FUNCTION_RE.match(input_line)
210 …common.add_global_checks(builder.global_var_dict(), ';', prefix_list, output_lines, global_vars_se…
211 common.debug('Writing %d lines to %s...' % (len(output_lines), ti.path))