| 1 |
#! /bin/sh -vx |
| 2 |
# Copyright 2024 Japanese TeX Development Community <[email protected]> |
| 3 |
# You may freely use, modify and/or distribute this file. |
| 4 |
|
| 5 |
BinDir=${BinDir:-.} |
| 6 |
ExeExt=${ExeExt:-} |
| 7 |
_uptex=$BinDir/uptex$ExeExt |
| 8 |
|
| 9 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 10 |
|
| 11 |
TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF |
| 12 |
OFMFONTS=".;$srcdir/tests"; export OFMFONTS |
| 13 |
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS |
| 14 |
TEXFORMATS=.; export TEXFORMATS |
| 15 |
|
| 16 |
# get same filename in log |
| 17 |
rm -f up-lmr*.* |
| 18 |
$LN_S $srcdir/uptexdir/tests/lmr1.tex ./up-lmr1.tex |
| 19 |
$LN_S $srcdir/uptexdir/tests/lmr2.tex ./up-lmr2.tex |
| 20 |
|
| 21 |
if test ! -f ./up-basic.tex; then |
| 22 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 23 |
fi |
| 24 |
if test ! -f ./up-basic.fmt; then |
| 25 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 26 |
$_uptex -ini up-basic || exit 1 |
| 27 |
fi |
| 28 |
|
| 29 |
$_uptex -fmt=up-basic -interaction=batchmode up-lmr1.tex || : |
| 30 |
|
| 31 |
sed 1d up-lmr1.log >up-lmr1.out |
| 32 |
|
| 33 |
diff $srcdir/uptexdir/tests/up-lmr1.log up-lmr1.out || exit 3 |
| 34 |
|
| 35 |
$_uptex -fmt=up-basic -interaction=batchmode up-lmr2.tex || : |
| 36 |
|
| 37 |
sed 1d up-lmr2.log >up-lmr2.out |
| 38 |
|
| 39 |
diff $srcdir/uptexdir/tests/up-lmr2.log up-lmr2.out || exit 4 |
| 40 |
|