10 $program "$@" > test.out 2>&1
12 if [ $tap_return_value -ne 0 ]; then
16 printf 'ok %d - %s %s\n' $tn $program "$*"
17 if [ $tap_return_value -ne 0 ]; then
18 cat test.out | diagstdin
20 return $tap_return_value
27 $program "$@" > test.out 2>&1
30 if [ $rv -ne 0 ]; then
31 printf 'not ok %d - %s %s\n' $tn $program "$*"
32 cat test.out | diagstdin
34 bailout "exit status $rv";
36 printf 'ok %d - %s %s\n' $tn $program "$*"
47 if [ "$note" != "" ]; then
48 printf '# %s\n' "$note"
71 if [ $rv -eq 0 ]; then
73 note=$(printf 'got "%d" expected "%d"' "$rv" "0")
76 printf 'ok %d - %s\n' $tn "$*"
83 if [ $rv -ne $1 ]; then
85 note=$(printf 'got "%d" expected "%d"' "$rv" "$1")
89 printf 'ok %d - %s\n' $tn "$*"
96 if [ "$1" != "$2" ]; then
98 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
103 printf 'ok %d - %s\n' $tn "$*"
109 printf '1..%d\n' $planned
113 if [ $planned -eq 0 ]; then
121 while [ $tap_skipping -gt 0 ]; do
123 tap_skipping=$((tap_skipping - 1))
124 printf 'ok %d - skip %s\n' $tn "$*"