2 # shell script to run TRIP and TRAP tests and create diffs.
4 # Copyright (C) 2010-2014 Peter Breitenlohner <tex-live@tug.org>
6 # This file is free software; the copyright holder
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
10 # Due to filename conflicts, these tests must be run sequentially.
16 trap "rm -f $tmp" 1 2 13 15
18 echo "$me: Running TRIP and TRAP tests and creating diffs."
23 trip.diffs
) tst
=triptest
; msg
='TRIP test for TeX';;
24 mftrap.diffs
) tst
=mftraptest
; msg
='TRAP test for Metafont';;
25 mptrap.diffs
) tst
=mplibdir
/mptraptest
; msg
='MPTRAP test for MetaPost';;
26 etrip.diffs
) tst
=etexdir
/etriptest
; msg
='e-TRIP test for e-TeX';;
27 ptrip.diffs
) tst
=ptexdir
/ptriptest
; msg
='TRIP test for pTeX';;
28 eptrip.diffs
) tst
=eptexdir
/eptriptest
; msg
='e-TRIP test for e-pTeX';;
29 uptrip.diffs
) tst
=uptexdir
/uptriptest
; msg
='TRIP test for upTeX';;
30 euptrip.diffs
) tst
=euptexdir
/euptriptest
; msg
='e-TRIP test for e-upTeX';;
31 *) echo "$me: Bad argument \`$file'"; exit 1;;
33 echo ">>> Running $msg."
35 $MAKE TESTS
=$tst check-am
>$tmp 2>&1 \
36 && grep "PASS: $tst" $tmp >/dev
/null
2>&1 \
37 ||
{ echo "FAIL: $tst"; is_OK
=false
; }
38 sed -e "s%$abs_srcdir/%SRCDIR/%" \
42 echo "PASS: $tst" >>$file
45 echo "FAIL: $tst" >>$file