| 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 |
_updvitype=$BinDir/updvitype$ExeExt |
| 9 |
|
| 10 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 11 |
|
| 12 |
TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF |
| 13 |
OFMFONTS=".;$srcdir/tests"; export OFMFONTS |
| 14 |
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS |
| 15 |
TEXFORMATS=.; export TEXFORMATS |
| 16 |
|
| 17 |
# get same filename in log |
| 18 |
rm -f up-ofm.* uptests/xup-ofm* |
| 19 |
$LN_S $srcdir/uptexdir/tests/up-ofm.tex ./up-ofm.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 |
$_uptex -ini up-basic || exit 1 |
| 26 |
fi |
| 27 |
|
| 28 |
$_uptex -fmt=up-basic -interaction=batchmode up-ofm || : |
| 29 |
|
| 30 |
sed 1d up-ofm.log >up-ofm.out |
| 31 |
|
| 32 |
diff $srcdir/uptexdir/tests/up-ofm.log up-ofm.out || exit 3 |
| 33 |
|
| 34 |
$_updvitype ./up-ofm.dvi >uptests/xup-ofm.typ |
| 35 |
sed "1d;s/TeX output 20[23].\...\...:.*'/TeX output 20XX.XX.XX'/" uptests/xup-ofm.typ >uptests/xup-ofma.typ |
| 36 |
diff $srcdir/uptexdir/tests/up-ofma.typ uptests/xup-ofma.typ || exit 4 |
| 37 |
|