| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: ttf2afm.test 804 2018-05-17 22:29:15Z karl $ |
| 3 |
# Copyright 2017-2018 Karl Berry <[email protected]># |
| 4 |
# Copyright 2013 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_pdftex=$BinDir/pdftex$ExeExt |
| 10 |
|
| 11 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 12 |
|
| 13 |
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF |
| 14 |
TEXINPUTS=$srcdir/pdftexdir/tests:$srcdir/tests; export TEXINPUTS; |
| 15 |
TEXFONTS=$srcdir/pdftexdir/tests; export TEXFONTS |
| 16 |
|
| 17 |
testsrc=$srcdir/pdftexdir/tests |
| 18 |
|
| 19 |
failed= |
| 20 |
|
| 21 |
echo "*** ttf2afm postV3.ttf" \ |
| 22 |
&& ./ttf2afm postV3.ttf \ |
| 23 |
| sed '/Converted at/d' >postV3.afm \ |
| 24 |
&& diff $testsrc/postV3.afm postV3.afm \ |
| 25 |
&& echo && echo "postV3 tests OK" && echo \ |
| 26 |
|| failed="$failed postV3" |
| 27 |
|
| 28 |
echo "*** ttf2afm postV7.ttf" \ |
| 29 |
&& ./ttf2afm postV7.ttf \ |
| 30 |
| sed '/Converted at/d' >postV7.afm \ |
| 31 |
&& diff $testsrc/postV7.afm postV7.afm \ |
| 32 |
&& echo && echo "postV7 tests OK" && echo \ |
| 33 |
|| failed="$failed postV7" |
| 34 |
|
| 35 |
test -z "$failed" && exit 0 |
| 36 |
echo |
| 37 |
echo "failed tests:$failed" |
| 38 |
exit 1 |
| 39 |
|