15 printf 'ok %d - %s %s\n' $tn $program "$*"
19 if [ "$note" != "" ]; then
20 printf '# %s\n' "$note"
31 if [ $rv -eq 0 ]; then
33 note=$(printf 'got "%d" expected "%d"' "$rv" "0")
36 printf 'ok %d - %s\n' $tn "$*"
43 if [ $rv -ne $1 ]; then
45 note=$(printf '# got "%d" expected "%d"' "$1" "$2")
49 printf 'ok %d - %s\n' $tn "$*"
55 if [ "$1" != "$2" ]; then
57 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
62 printf 'ok %d - %s\n' $tn "$*"
68 printf '1..%d\n' $planned
72 if [ $planned -eq 0 ]; then