| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: gk256.test 69812 2024-02-11 23:09:24Z karl $ |
| 3 |
# Copyright 2023 Karl Berry <[email protected]> |
| 4 |
# You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
BinDir=${BinDir:-.} |
| 7 |
ExeExt=${ExeExt:-} |
| 8 |
_uppltotf=$BinDir/uppltotf$ExeExt |
| 9 |
_uptftopl=$BinDir/uptftopl$ExeExt |
| 10 |
|
| 11 |
test -d uptests || mkdir -p uptests |
| 12 |
|
| 13 |
TEXMFCNF=$srcdir/../kpathsea |
| 14 |
export TEXMFCNF |
| 15 |
|
| 16 |
# Test inputs |
| 17 |
testdir=$srcdir/uptexdir/tests |
| 18 |
|
| 19 |
# Testing upPLtoTF/upTFtoPL for huge GLUEKERN table |
| 20 |
# with over 256 different glue/kern. |
| 21 |
for font in gk256g gk256k; do |
| 22 |
|
| 23 |
# This test is constructed as a cycle, since JPL source |
| 24 |
# of gkhugeok.tfm is so large. |
| 25 |
$_uptftopl -verbose $testdir/$font.tfm uptests/y$font.pl && \ |
| 26 |
$_uppltotf -verbose uptests/y$font.pl uptests/y$font.tfm && \ |
| 27 |
cmp $testdir/$font.tfm uptests/y$font.tfm && echo || exit 1 |
| 28 |
|
| 29 |
done |
| 30 |
|