8 diffcmd='diff --unchanged-line-format= --old-line-format=<%L --new-line-format=>%L'
10 for candidate in ${@:-t*.in}
12 test_count=$((test_count+1))
13 file="${candidate%.in}"
14 test -r "$file.in" || continue
16 name="$(echo ${file#*-} | tr _ \ )"
18 case "$name" in *\ -*) cmd="$cmd -${name#* -}";; esac
20 $cmd 2>&1 | $diffcmd "$file.out" - || printf 'not '
21 echo "ok $test_count - $name"