| 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 |
_euptex=$BinDir/euptex$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 eup-jchwidow*.* |
| 18 |
$LN_S $srcdir/uptexdir/tests/jchwidow.tex ./eup-jchwidow.tex |
| 19 |
|
| 20 |
if test ! -f ./eup-basic.tex; then |
| 21 |
cp $srcdir/tests/dump-basic.tex ./eup-basic.tex |
| 22 |
fi |
| 23 |
if test ! -f ./eup-basic-sjis.fmt; then |
| 24 |
$_uptex -ini -etex -kanji-internal=sjis -jobname=eup-basic-sjis eup-basic || exit 1 |
| 25 |
fi |
| 26 |
if test ! -f ./eup-basic-euc.fmt; then |
| 27 |
$_uptex -ini -etex -kanji-internal=euc -jobname=eup-basic-euc eup-basic || exit 2 |
| 28 |
fi |
| 29 |
if test ! -f ./eup-basic.fmt; then |
| 30 |
$_euptex -ini -etex eup-basic || exit 3 |
| 31 |
fi |
| 32 |
|
| 33 |
$_euptex -fmt=eup-basic-sjis -kanji-internal=sjis -jobname=eup-jchwidow-s -interaction=batchmode eup-jchwidow || : |
| 34 |
$_euptex -fmt=eup-basic-euc -kanji-internal=euc -jobname=eup-jchwidow-e -interaction=batchmode eup-jchwidow || : |
| 35 |
$_euptex -fmt=eup-basic -interaction=batchmode eup-jchwidow || : |
| 36 |
|
| 37 |
sed 1d eup-jchwidow-s.log >eup-jchwidow-s.out |
| 38 |
sed 1d eup-jchwidow-e.log >eup-jchwidow-e.out |
| 39 |
sed 1d eup-jchwidow.log >eup-jchwidow.out |
| 40 |
|
| 41 |
diff $srcdir/euptexdir/tests/eup-jchwidow-s.log eup-jchwidow-s.out || exit 10 |
| 42 |
diff $srcdir/euptexdir/tests/eup-jchwidow-e.log eup-jchwidow-e.out || exit 11 |
| 43 |
diff $srcdir/euptexdir/tests/eup-jchwidow.log eup-jchwidow.out || exit 12 |
| 44 |
|