Debian Codegraph @

texk/web2c/uptexdir/uparse.test

raw
1 #! /bin/sh -vx
2 # $Id: uparse.test 69812 2024-02-11 23:09:24Z karl $
3 # Copyright 2018 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 # Test inputs
14 testdir=$srcdir/uptexdir/tests
15
16 # Testing upPLtoTF/upTFtoPL for JPL parsing
17 # and direct charcter printing (without -charcode-format octal).
18 for font in uparse; do
19
20 # allow hex kanji code with arbitary digits,
21 # no error for no trailing spaces.
22 $_uppltotf -verbose $testdir/$font.pl uptests/x$font.tfm && \
23 cmp $testdir/$font.tfm uptests/x$font.tfm && echo || exit 1
24
25 # upTFtoPL should always print ASCII characters in charcode format,
26 # even when -charcode-format octal is disabled; otherwise
27 # upPLtoTF cannot accept the resulting JPL file correctly.
28 # This test is constructed as a cycle, so that there is no
29 # non-ASCII character inside test case distribution.
30 TEXMFCNF=$srcdir/../kpathsea \
31 $_uptftopl -verbose $testdir/$font.tfm uptests/y$font.pl && \
32 $_uppltotf -verbose uptests/y$font.pl uptests/y$font.tfm && \
33 cmp $testdir/$font.tfm uptests/y$font.tfm && echo || exit 2
34
35 done
36