7 if [ "$1" = "-v" ]; then
17 $program "$@" > test.out 2>&1
21 if [ $tap_rv -ne 0 ]; then
24 printf 'ok %d - %s %s\n' $tn $program "$*"
26 if [ $allout -eq 1 ] || [ $tap_rv -ne 0 ]; then
27 if test -s test.out; then
28 cat test.out | diagstdin
39 if [ $rv -ne 0 ]; then
40 bailout "exit status $rv";
51 if [ "$note" != "" ]; then
52 printf '# %s\n' "$note"
75 if [ $rv -eq 0 ]; then
77 note=$(printf 'got "%d" expected non-zero' "$rv")
80 printf 'ok %d - %s\n' $tn "$*"
87 if [ $rv -ne $1 ]; then
89 note=$(printf 'got "%d" expected "%d"' "$rv" "$1")
93 printf 'ok %d - %s\n' $tn "$*"
100 if [ "$1" != "$2" ]; then
102 note=$(printf 'got "%s"\n# expected "%s"' "$1" "$2")
107 printf 'ok %d - %s\n' $tn "$*"
113 printf '1..%d\n' $planned
117 if [ $planned -eq 0 ]; then
125 while [ $tap_skipping -gt 0 ]; do
127 tap_skipping=$((tap_skipping - 1))
128 printf 'ok %d - # skip %s\n' $tn "$*"
140 printf 'ok %d - %s\n' $tn "$*"