3 #==============================================================================
5 # File ID: a813eb74-2b2c-11e5-b0b2-000df06acc56
7 # Execute a test file and show the first failing test in vimdiff.
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #==============================================================================
26 " -n "$progname" -- "$@
")"
27 test "$?" = "0" ||
exit 1
36 -d|
--diff) opt_diff
=1; shift ;;
37 -h|
--help) opt_help
=1; shift ;;
38 -q|
--quiet) opt_quiet
=$
(($opt_quiet + 1)); shift ;;
39 -v|
--verbose) opt_verbose
=$
(($opt_verbose + 1)); shift ;;
40 --version) echo $progname $VERSION; exit 0 ;;
42 *) echo $progname: Internal error
>&2; exit 1 ;;
45 opt_verbose
=$
(($opt_verbose - $opt_quiet))
47 if test "$opt_help" = "1"; then
48 test $opt_verbose -gt 0 && { echo; echo $progname $VERSION; }
51 Execute a test file and show the first failing test in vimdiff.
53 Usage: $progname [options] TESTFILE
58 Show a regular textual diff instead of starting vimdiff.
62 Be more quiet. Can be repeated to increase silence.
64 Increase level of verbosity. Can be repeated.
66 Print version information.
74 "$script" 2>&1 | gotexp
"$@"
75 if test "$opt_diff" = "1"; then
78 vimdiff
-c "windo set wrap" exp got
82 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :