8 diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L'
13 -*) echo "Usage: $0 [<files>...]"; exit 64;;
17 for candidate in ${@:-t*.in}
19 test_count=$((test_count+1))
20 file="${candidate%.in}"
21 test -r "$file.in" || continue
23 name="$(echo ${file#*-} | tr _ \ )"
25 case "$name" in *\ -*) cmd="$cmd -${name#* -}";; esac
27 $cmd 2>&1 | $diffcmd "$file.out" - || printf 'not '
28 echo "ok $test_count - $name"