9 $program "$@" > test.out 2>&1
11 if [ $tap_return_value -ne 0 ]; then
15 printf 'ok %d - %s %s\n' $tn $program "$*"
16 if [ $tap_return_value -ne 0 ]; then
17 cat test.out | diagstdin
20 return $tap_return_value
26 if [ $rv -ne 0 ]; then
27 bailout "exit status $rv";
38 if [ "$note" != "" ]; then
39 printf '# %s\n' "$note"
62 if [ $rv -eq 0 ]; then
64 note=$(printf 'got "%d" expected "%d"' "$rv" "0")
67 printf 'ok %d - %s\n' $tn "$*"
74 if [ $rv -ne $1 ]; then
76 note=$(printf 'got "%d" expected "%d"' "$rv" "$1")
80 printf 'ok %d - %s\n' $tn "$*"
87 if [ "$1" != "$2" ]; then
89 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
94 printf 'ok %d - %s\n' $tn "$*"
100 printf '1..%d\n' $planned
104 if [ $planned -eq 0 ]; then
112 while [ $tap_skipping -gt 0 ]; do
114 tap_skipping=$((tap_skipping - 1))
115 printf 'ok %d - # skip %s\n' $tn "$*"