| 1 |
#! /bin/sh -vx |
| 2 |
# Copyright 2025 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-cat.* |
| 18 |
$LN_S $srcdir/uptexdir/tests/catcd.tex ./up-cat.tex |
| 19 |
|
| 20 |
if test ! -f ./up-basic.tex; then |
| 21 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 22 |
fi |
| 23 |
if test ! -f ./up-basic.fmt; then |
| 24 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 25 |
$_uptex -ini up-basic || exit 1 |
| 26 |
fi |
| 27 |
|
| 28 |
$_uptex -fmt=up-basic -interaction=batchmode up-cat.tex || : |
| 29 |
|
| 30 |
sed 1d up-cat.log >up-cat.out |
| 31 |
|
| 32 |
diff $srcdir/uptexdir/tests/up-cat.log up-cat.out || exit 3 |
| 33 |
|