| 1 |
#! /bin/sh -vx |
| 2 |
# Copyright 2024-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 |
_updvitype=$BinDir/updvitype$ExeExt |
| 9 |
|
| 10 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 11 |
|
| 12 |
TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF |
| 13 |
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS |
| 14 |
TEXFONTS=".;$srcdir//tests"; export TEXFONTS |
| 15 |
TEXFORMATS=.; export TEXFORMATS |
| 16 |
|
| 17 |
rm -f up-ctrlsym.tex up-endline*.* up-jctrlsym*.* up-chartoken.* up-lineend.* |
| 18 |
|
| 19 |
if test ! -f ./up-basic.tex; then |
| 20 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 21 |
fi |
| 22 |
if test ! -f ./up-basic-euc.fmt; then |
| 23 |
$_uptex -ini -kanji-internal=euc -jobname=up-basic-euc up-basic || exit 2 |
| 24 |
fi |
| 25 |
if test ! -f ./up-basic.fmt; then |
| 26 |
$_uptex -ini -kanji-internal=uptex -jobname=up-basic up-basic || exit 3 |
| 27 |
fi |
| 28 |
|
| 29 |
# ctrlsym.tex |
| 30 |
$LN_S $srcdir/uptexdir/tests/ctrlsym.tex ./up-ctrlsym.tex |
| 31 |
$_uptex -fmt=up-basic-euc -kanji-internal=euc -jobname=up-ctrlsym-e up-ctrlsym || exit 10 |
| 32 |
$_uptex -fmt=up-basic -jobname=up-ctrlsym-u up-ctrlsym || exit 11 |
| 33 |
|
| 34 |
sed 1d up-ctrlsym-e.log >up-ctrlsym-e.out |
| 35 |
sed 1d up-ctrlsym-u.log >up-ctrlsym-u.out |
| 36 |
|
| 37 |
diff $srcdir/uptexdir/tests/ctrlsym-e.log up-ctrlsym-e.out || exit 12 |
| 38 |
diff $srcdir/uptexdir/tests/ctrlsym-u.log up-ctrlsym-u.out || exit 13 |
| 39 |
|
| 40 |
|
| 41 |
# endlinchar.tex |
| 42 |
$LN_S $srcdir/uptexdir/tests/endlinechar.tex ./up-endline.tex |
| 43 |
$_uptex -fmt=up-basic -interaction=batchmode up-endline.tex || : |
| 44 |
|
| 45 |
sed 1d up-endline.log >up-endline.out |
| 46 |
|
| 47 |
diff $srcdir/uptexdir/tests/endline.log up-endline.out || exit 20 |
| 48 |
|
| 49 |
if test -f $_updvitype; then |
| 50 |
$_updvitype ./up-endline.dvi >uptests/xup-endline.typ |
| 51 |
sed "1d;s/TeX output 20[23].\...\...:.*'/TeX output 20XX.XX.XX'/" uptests/xup-endline.typ >uptests/xup-endlinea.typ |
| 52 |
diff $srcdir/uptexdir/tests/up-endlinea.typ uptests/xup-endlinea.typ || exit 21 |
| 53 |
fi |
| 54 |
|
| 55 |
|
| 56 |
# control-symbol.tex |
| 57 |
$LN_S $srcdir/uptexdir/tests/control-symbol.tex ./up-jctrlsym.tex |
| 58 |
$_uptex -fmt=up-basic-euc -kanji-internal=euc -jobname=up-jctrlsym-e -interaction=batchmode up-jctrlsym.tex || : |
| 59 |
$_uptex -fmt=up-basic -jobname=up-jctrlsym-u -interaction=batchmode up-jctrlsym.tex || : |
| 60 |
|
| 61 |
sed 1d up-jctrlsym-e.log >up-jctrlsym-e.out |
| 62 |
sed 1d up-jctrlsym-u.log >up-jctrlsym-u.out |
| 63 |
|
| 64 |
diff $srcdir/uptexdir/tests/jctrlsym-e.log up-jctrlsym-e.out || exit 30 |
| 65 |
diff $srcdir/uptexdir/tests/jctrlsym-u.log up-jctrlsym-u.out || exit 31 |
| 66 |
|
| 67 |
if test -f $_updvitype; then |
| 68 |
$_updvitype ./up-jctrlsym-e.dvi >uptests/xup-jctrlsym-e.typ |
| 69 |
$_updvitype ./up-jctrlsym-u.dvi >uptests/xup-jctrlsym-u.typ |
| 70 |
sed "1d;s/TeX output 20[23].\...\...:.*'/TeX output 20XX.XX.XX'/" uptests/xup-jctrlsym-e.typ >uptests/xup-jctrlsyma-e.typ |
| 71 |
sed "1d;s/TeX output 20[23].\...\...:.*'/TeX output 20XX.XX.XX'/" uptests/xup-jctrlsym-u.typ >uptests/xup-jctrlsyma-u.typ |
| 72 |
diff $srcdir/uptexdir/tests/up-jctrlsyma-e.typ uptests/xup-jctrlsyma-e.typ || exit 32 |
| 73 |
diff $srcdir/uptexdir/tests/up-jctrlsyma-u.typ uptests/xup-jctrlsyma-u.typ || exit 32 |
| 74 |
fi |
| 75 |
|
| 76 |
|
| 77 |
# let_char_token.tex |
| 78 |
$LN_S $srcdir/uptexdir/tests/let_char_token.tex ./up-chartoken.tex |
| 79 |
$_uptex -fmt=up-basic-euc -kanji-internal=euc -interaction=batchmode up-chartoken.tex || : |
| 80 |
|
| 81 |
sed 1d up-chartoken.log >up-chartoken.out |
| 82 |
|
| 83 |
diff $srcdir/uptexdir/tests/chartoken.log up-chartoken.out || exit 40 |
| 84 |
|
| 85 |
|
| 86 |
# ptexlineendmode.tex |
| 87 |
$LN_S $srcdir/uptexdir/tests/ptexlineendmode.tex ./up-lineend.tex |
| 88 |
$_uptex -fmt=up-basic-euc -kanji-internal=euc -interaction=batchmode up-lineend.tex || : |
| 89 |
|
| 90 |
if test -f $_updvitype; then |
| 91 |
$_updvitype -kanji=utf8 ./up-lineend.dvi >uptests/xup-lineend.typ |
| 92 |
sed "1d;s/TeX output 20[23].\...\...:.*'/TeX output 20XX.XX.XX'/" uptests/xup-lineend.typ >uptests/xup-lineenda.typ |
| 93 |
diff $srcdir/uptexdir/tests/up-lineenda.typ uptests/xup-lineenda.typ || exit 50 |
| 94 |
fi |
| 95 |
|