Lines Matching refs:args

43     "--bindgen-args",
141 args = parser.parse_args()
147 run_bindgen(args, bindings)
149 if args.rustc and not args.expect_bindgen_fail:
151 run_rustc(args, bindings, test_exe)
153 if args.layout_tests and not args.expect_compile_fail:
154 run_layout_tests(args, test_exe)
161 if not args.save_temp_files:
198 def run_bindgen(args, bindings):
203 if args.release:
205 command += ["--", args.input, "-o", bindings]
206 command += shlex.split(args.bindgen_args)
210 if args.bindgen_grep:
211 pattern = regexp(args.bindgen_grep)
214 exit_1("Error: did not find '{}' in `bindgen`'s output".format(args.bindgen_grep), child)
216 if args.expect_bindgen_fail and child.returncode == 0:
219 if not args.expect_bindgen_fail and child.returncode != 0:
222 for arg in args.bindings_grep or []:
232 def run_rustc(args, bindings, test_exe):
233 if args.extra_compile_file:
235 with open(args.extra_compile_file, mode="r") as infile:
242 if args.rustc_grep:
243 pattern = regexp(args.rustc_grep)
246 exit_1("Error: did not find '{}' in `rustc`'s output".format(args.rustc_grep), child)
248 if args.expect_compile_fail and child.returncode == 0:
251 if not args.expect_compile_fail and child.returncode != 0:
254 def run_layout_tests(args, test_exe):
260 if args.layout_tests_grep:
261 pattern = regexp(args.layout_tests_grep)
264 exit_1("Error: did not find '{}' in the compiled bindings' layout tests' output".format(args.layout_tests_grep), child)
266 if args.expect_layout_tests_fail and child.returncode == 0:
269 if not args.expect_layout_tests_fail and child.returncode != 0: