| 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 |
KpsDir=${KpsDir:-../kpathsea} |
| 6 |
BinDir=${BinDir:-.} |
| 7 |
ExeExt=${ExeExt:-} |
| 8 |
_kpsewhich=$KpsDir/kpsewhich$ExeExt |
| 9 |
_uptex=$BinDir/uptex$ExeExt |
| 10 |
|
| 11 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 12 |
|
| 13 |
if type kpsewhich > /dev/null 2>&1; then |
| 14 |
tfmpath=".//;"`kpsewhich -show-path=tfm` |
| 15 |
tfmpath=`echo $tfmpath | sed -e 's,!!,,g'` |
| 16 |
fi |
| 17 |
|
| 18 |
TEXMFCNF=$srcdir/../kpathsea;export TEXMFCNF |
| 19 |
OFMFONTS=".;$srcdir/tests"; export OFMFONTS |
| 20 |
TEXINPUTS=".;$srcdir/tests"; export TEXINPUTS |
| 21 |
TEXFORMATS=.; export TEXFORMATS |
| 22 |
|
| 23 |
if type kpsewhich > /dev/null 2>&1; then |
| 24 |
echo $tfmpath |
| 25 |
else |
| 26 |
tfmpath=".//;"`$_kpsewhich -show-path=tfm` |
| 27 |
echo $tfmpath |
| 28 |
fi |
| 29 |
TFMFONTS=`$_kpsewhich "--cnf-line=TFMFONTS=$tfmpath" -show-path=tfm` |
| 30 |
export TFMFONTS |
| 31 |
echo "TFMFONTS::" $TFMFONTS |
| 32 |
|
| 33 |
##### following tests require NOTO fonts ##### |
| 34 |
|
| 35 |
$_kpsewhich NotoSerif-Regular-lf-t1.tfm || exit 77 |
| 36 |
|
| 37 |
rm -f up-noto*.* |
| 38 |
$LN_S $srcdir/uptexdir/tests/noto1.tex ./up-noto1.tex |
| 39 |
|
| 40 |
if test ! -f ./up-basic.tex; then |
| 41 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 42 |
fi |
| 43 |
if test ! -f ./up-basic.fmt; then |
| 44 |
cp $srcdir/tests/dump-basic.tex ./up-basic.tex |
| 45 |
$_uptex -ini up-basic || exit 1 |
| 46 |
fi |
| 47 |
|
| 48 |
$_uptex -fmt=up-basic -interaction=batchmode up-noto1.tex || : |
| 49 |
|
| 50 |
sed 1d up-noto1.log >up-noto1.out |
| 51 |
|
| 52 |
diff $srcdir/uptexdir/tests/up-noto1.log up-noto1.out || exit 3 |