| 1 |
#! /bin/sh -vx |
| 2 |
# Copyright 2017 Karl Berry <[email protected]> |
| 3 |
# Copyright 2012 Peter Breitenlohner <[email protected]> |
| 4 |
# You may freely use, modify and/or distribute this file. |
| 5 |
|
| 6 |
failed= |
| 7 |
|
| 8 |
rm -rf Fon* tmf.* |
| 9 |
|
| 10 |
$LCDF_TYPETOOLS_TREE/cfftot1/cfftot1 -a $srcdir/tests/texmfhome.otf tmf.pfa \ |
| 11 |
&& diff tmf.pfa $srcdir/tests/tmf.pfa \ |
| 12 |
&& echo "cfftot1/asc tests OK" \ |
| 13 |
|| failed="$failed cfftot1/asc" |
| 14 |
|
| 15 |
cat $srcdir/tests/texmfhome.otf | $LCDF_TYPETOOLS_TREE/cfftot1/cfftot1 -b >tmf.pfb \ |
| 16 |
&& cmp -s tmf.pfb $srcdir/tests/tmf.pfb \ |
| 17 |
&& echo "cfftot1/bin tests OK" \ |
| 18 |
|| failed="$failed cfftot1/bin" |
| 19 |
|
| 20 |
$LCDF_TYPETOOLS_TREE/ttftotype42/ttftotype42 $srcdir/tests/FonetikaDaniaIwonaeBold.ttf Fon_f.t42 \ |
| 21 |
&& diff Fon_f.t42 $srcdir/tests/Fon.t42 \ |
| 22 |
&& echo "ttftotype42/file tests OK" \ |
| 23 |
|| failed="$failed ttftotype42/file" |
| 24 |
|
| 25 |
cat $srcdir/tests/FonetikaDaniaIwonaeBold.ttf | $LCDF_TYPETOOLS_TREE/ttftotype42/ttftotype42 >Fon_t.t42 \ |
| 26 |
&& diff Fon_t.t42 $srcdir/tests/Fon.t42 \ |
| 27 |
&& echo "ttftotype42/term tests OK" \ |
| 28 |
|| failed="$failed ttftotype42/term" |
| 29 |
|
| 30 |
$LCDF_TYPETOOLS_TREE/otfinfo/otfinfo -t $srcdir/tests/texmfhome.otf >tmf.tables \ |
| 31 |
&& diff tmf.tables $srcdir/tests/tmf.tables \ |
| 32 |
&& echo "otfinfo/t tests OK" \ |
| 33 |
|| failed="$failed otfinfo/t" |
| 34 |
|
| 35 |
cat $srcdir/tests/texmfhome.otf | $LCDF_TYPETOOLS_TREE/otfinfo/otfinfo -i >tmf.info \ |
| 36 |
&& diff tmf.info $srcdir/tests/tmf.info \ |
| 37 |
&& echo "otfinfo/i tests OK" \ |
| 38 |
|| failed="$failed otfinfo/i" |
| 39 |
|
| 40 |
cat $srcdir/tests/texmfhome.otf | $LCDF_TYPETOOLS_TREE/otfinfo/otfinfo -T post >Fon.post \ |
| 41 |
&& cmp -s Fon.post $srcdir/tests/Fon.post \ |
| 42 |
&& echo "otfinfo/T tests OK" \ |
| 43 |
|| failed="$failed otfinfo/T" |
| 44 |
|
| 45 |
test -z "$failed" && exit 0 |
| 46 |
echo "failed tests:$failed" |
| 47 |
exit 1 |
| 48 |
|