| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: upkcat.test 73271 2025-01-02 12:27:29Z takuji $ |
| 3 |
# Copyright 2022-2025 TANAKA Takuji <[email protected]> |
| 4 |
# You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
BinDir=${BinDir:-.} |
| 7 |
ExeExt=${ExeExt:-} |
| 8 |
_uptex=$BinDir/uptex$ExeExt |
| 9 |
|
| 10 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 11 |
|
| 12 |
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF |
| 13 |
TEXINPUTS="$srcdir/uptexdir/tests;."; export TEXINPUTS |
| 14 |
|
| 15 |
rm -f upkcat*log*.log |
| 16 |
|
| 17 |
$_uptex -ini -interaction batchmode -jobname upkcat-log kcat.tex || exit 1 |
| 18 |
grep '::' upkcat-log.log > upkcat-log_ed.log \ |
| 19 |
&& diff upkcat-log_ed.log $srcdir/uptexdir/tests/upkcat.txt || exit 2 |
| 20 |
|
| 21 |
$_uptex -ini -interaction batchmode -jobname upkcat-e-log -kanji-internal=euc kcat.tex || exit 3 |
| 22 |
grep '::' upkcat-e-log.log > upkcat-e-log_ed.log \ |
| 23 |
&& diff upkcat-e-log_ed.log $srcdir/uptexdir/tests/upkcat-e.txt || exit 4 |
| 24 |
|
| 25 |
$_uptex -ini -interaction batchmode -jobname upkcat-s-log -kanji-internal=sjis kcat.tex || exit 5 |
| 26 |
grep '::' upkcat-s-log.log > upkcat-s-log_ed.log \ |
| 27 |
&& diff upkcat-s-log_ed.log $srcdir/uptexdir/tests/upkcat-s.txt || exit 6 |
| 28 |
|
| 29 |
exit 0 |