Lines Matching +full:script +full:- +full:output
3 # This script tests debugging information generated by a compiler.
5 # - Input source program. Usually this source file is decorated using
7 # - Executable file. This file is generated by the compiler.
9 # This perl script extracts debugger commands from input source program
10 # comments in a script. A debugger is used to load the executable file
11 # and run the script generated from source program comments. Finally,
12 # the debugger output is checked, using FileCheck, to validate
15 # On Darwin the default is to use the llgdb.py wrapper script which
28 my $debugger_script_file = "$output_dir/$input_filename.debugger.script";
29 my $output_file = "$output_dir/$input_filename.gdb.output";
39 open(OUTPUT, ">$debugger_script_file");
46 print OUTPUT "$s";
49 print OUTPUT "\n";
50 print OUTPUT "quit\n";
52 close(OUTPUT);
54 # setup debugger and debugger options to run a script.
59 $my_debugger = "/usr/bin/env python $path/../tools/clang/test/debuginfo-tests/llgdb.py";
65 # quiet / exit after cmdline / no init file / execute script
66 my $debugger_options = "-q -batch -n -x";
68 # run debugger and capture output.
71 # validate output.
72 system("FileCheck", "-input-file", "$output_file", "$testcase_file");
74 print "Debugger output was:\n";