| 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 |
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS |
| 13 |
TEXFONTS=".;$srcdir//tests"; export TEXFONTS |
| 14 |
TEXFORMATS=.; export TEXFORMATS |
| 15 |
|
| 16 |
# get same filename in log |
| 17 |
rm -f up-jchwidow*.* |
| 18 |
$LN_S $srcdir/uptexdir/tests/jchwidow.tex ./up-jchwidow.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-sjis.fmt; then |
| 24 |
$_uptex -ini -kanji-internal=sjis -jobname=up-basic-sjis up-basic || exit 1 |
| 25 |
fi |
| 26 |
if test ! -f ./up-basic-euc.fmt; then |
| 27 |
$_uptex -ini -kanji-internal=euc -jobname=up-basic-euc up-basic || exit 2 |
| 28 |
fi |
| 29 |
if test ! -f ./up-basic.fmt; then |
| 30 |
$_uptex -ini up-basic || exit 3 |
| 31 |
fi |
| 32 |
|
| 33 |
$_uptex -fmt=up-basic-sjis -kanji-internal=sjis -jobname=up-jchwidow-s -interaction=batchmode up-jchwidow || : |
| 34 |
$_uptex -fmt=up-basic-euc -kanji-internal=euc -jobname=up-jchwidow-e -interaction=batchmode up-jchwidow || : |
| 35 |
$_uptex -fmt=up-basic -interaction=batchmode up-jchwidow || : |
| 36 |
|
| 37 |
sed 1d up-jchwidow-s.log >up-jchwidow-s.out |
| 38 |
sed 1d up-jchwidow-e.log >up-jchwidow-e.out |
| 39 |
sed 1d up-jchwidow.log >up-jchwidow.out |
| 40 |
|
| 41 |
diff $srcdir/uptexdir/tests/up-jchwidow-s.log up-jchwidow-s.out || exit 10 |
| 42 |
diff $srcdir/uptexdir/tests/up-jchwidow-e.log up-jchwidow-e.out || exit 11 |
| 43 |
diff $srcdir/uptexdir/tests/up-jchwidow.log up-jchwidow.out || exit 12 |
| 44 |
|