| 1 |
#! /bin/sh -vx |
| 2 |
# $Id$ |
| 3 |
# Copyright 2024 Japanese TeX Development Community <[email protected]> |
| 4 |
# Copyright 2018 Karl Berry <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_uppltotf=$BinDir/uppltotf$ExeExt |
| 10 |
_uptftopl=$BinDir/uptftopl$ExeExt |
| 11 |
|
| 12 |
test -d uptests || mkdir -p uptests |
| 13 |
|
| 14 |
# Test inputs |
| 15 |
testdir=$srcdir/uptexdir/tests |
| 16 |
|
| 17 |
# Testing upPLtoTF/upTFtoPL for new JFM spec by texjporg. |
| 18 |
for font in testnewu; do |
| 19 |
|
| 20 |
$_uppltotf -verbose $testdir/$font.pl uptests/x$font.tfm && \ |
| 21 |
cmp $testdir/$font.tfm uptests/x$font.tfm && echo || exit 1 |
| 22 |
|
| 23 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 24 |
$_uptftopl -charcode-format octal -verbose $testdir/$font.tfm uptests/x$font.pl && \ |
| 25 |
diff $testdir/$font.pl uptests/x$font.pl && echo || exit 2 |
| 26 |
|
| 27 |
done |
| 28 |
|
| 29 |
for font in testnewu8; do |
| 30 |
|
| 31 |
$_uppltotf -verbose $testdir/$font.pl uptests/x$font.tfm && \ |
| 32 |
cmp $testdir/$font.tfm uptests/x$font.tfm && echo || exit 3 |
| 33 |
|
| 34 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 35 |
$_uptftopl -verbose $testdir/$font.tfm uptests/x$font.pl && \ |
| 36 |
diff $testdir/$font.pl uptests/x$font.pl && echo || exit 4 |
| 37 |
|
| 38 |
done |
| 39 |
|
| 40 |
cmp uptests/xtestnewu.tfm uptests/xtestnewu8.tfm || exit 10 |
| 41 |
|
| 42 |
exit 0 |