15 printf 'ok %d - %s %s\n' $tn $program "$*"
24 printf "bail out! fail[$?]: $@\n"
28 printf 'ok %d - %s %s\n' $tn $program "$*"
33 if [ "$note" != "" ]; then
34 printf '# %s\n' "$note"
49 if [ $rv -eq 0 ]; then
51 note=$(printf 'got "%d" expected "%d"' "$rv" "0")
54 printf 'ok %d - %s\n' $tn "$*"
61 if [ $rv -ne $1 ]; then
63 note=$(printf '# got "%d" expected "%d"' "$rv" "$1")
67 printf 'ok %d - %s\n' $tn "$*"
73 if [ "$1" != "$2" ]; then
75 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
80 printf 'ok %d - %s\n' $tn "$*"
86 printf '1..%d\n' $planned
90 if [ $planned -eq 0 ]; then