10 comm --nocheck-order --output-delimiter=::: -3 $@ |
11 perl -pe'END{exit !!$.} s/^:::/>/ || s/^/</'
17 -G) regenerate=1 && shift;;
18 -*) echo "Usage: $0 [-G] [<files>...]"; exit 64;;
22 for candidate in ${@:-t*.in}
24 test_count=$((test_count+1))
25 file="${candidate%.in}"
26 test -r "$file.in" || continue
28 name="$(echo ${file#*-} | tr _ \ )"
30 case "$name" in *\ -*) cmd="$cmd -${name#* -}";; esac
32 if test -n "$regenerate"
36 echo "ok $test_count # skip $file.out"
41 if test -e $file.sh; then $cmd 2>&1 | ./$file.sh; fi &&
42 if test -e $file.out; then $cmd 2>&1 | diffcmd "$file.out" -; fi
45 test 0 = $? || printf 'not '
46 echo "ok $test_count - $name"