10 $program "$@" >> test.out 2>&1
15 printf 'ok %d - %s %s\n' $tn $program "$*"
22 $program "$@" >> test.out 2>&1
24 if [ $rv -ne 0 ]; then
25 diag "bailing on $((tn + 1)) $program $*"
26 printf "bail out! fail[$rv]: $@\n"
30 printf 'ok %d - %s %s\n' $tn $program "$*"
35 if [ "$note" != "" ]; then
36 printf '# %s\n' "$note"
51 if [ $rv -eq 0 ]; then
53 note=$(printf 'got "%d" expected "%d"' "$rv" "0")
56 printf 'ok %d - %s\n' $tn "$*"
63 if [ $rv -ne $1 ]; then
65 note=$(printf '# got "%d" expected "%d"' "$rv" "$1")
69 printf 'ok %d - %s\n' $tn "$*"
75 if [ "$1" != "$2" ]; then
77 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
82 printf 'ok %d - %s\n' $tn "$*"
88 printf '1..%d\n' $planned
92 if [ $planned -eq 0 ]; then