3 # Usage: First do 'make -C ../src test' to generate the .out files. If there are
4 # failures, their test filenames will be printed to stdout. Pass these as
5 # arguments to this script.
7 # note: we don't use [ -z $FOO ] to check if FOO is unset because that is also
9 if [ -z "${OUT_EXT+x}" ]; then
13 if [ -z "${EXP_EXT+x}" ]; then
17 DIFF
=`command -v colordiff || echo diff`
20 nl --body-numbering=a
$f
21 if [ -e "$f$EXP_EXT" ]; then
27 $DIFF $EXP "$f$OUT_EXT"
28 read -p "Copy output to expected output? (y|n|q)" -n 1 -r
30 if [ "$REPLY" = "y" ]; then
31 cp "$f$OUT_EXT" "$f$EXP_EXT"
32 elif [ "$REPLY" = "q" ]; then