| 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 uhv* |
| 9 |
|
| 10 |
$LCDF_TYPETOOLS_TREE/t1dotlessj/t1dotlessj -a $srcdir/tests/uhvrrc8a.pfb uhv_dl.pfa \ |
| 11 |
&& diff uhv_dl.pfa $srcdir/tests/uhv_dl.pfa \ |
| 12 |
&& echo "t1dotlessj/asc tests OK" \ |
| 13 |
|| failed="$failed t1dotlessj/asc" |
| 14 |
|
| 15 |
cat $srcdir/tests/uhvrrc8a.pfb | $LCDF_TYPETOOLS_TREE/t1dotlessj/t1dotlessj -b >uhv_dl.pfb \ |
| 16 |
&& cmp -s uhv_dl.pfb $srcdir/tests/uhv_dl.pfb \ |
| 17 |
&& echo "t1dotlessj/bin tests OK" \ |
| 18 |
|| failed="$failed t1dotlessj/bin" |
| 19 |
|
| 20 |
$LCDF_TYPETOOLS_TREE/t1lint/t1lint uhv_dl.pfa \ |
| 21 |
&& echo "t1lint/asc tests OK" \ |
| 22 |
|| failed="$failed t1lint/asc" |
| 23 |
|
| 24 |
cat uhv_dl.pfb | $LCDF_TYPETOOLS_TREE/t1lint/t1lint \ |
| 25 |
&& echo "t1lint/bin tests OK" \ |
| 26 |
|| failed="$failed t1lint/bin" |
| 27 |
|
| 28 |
$LCDF_TYPETOOLS_TREE/t1testpage/t1testpage -o uhv_dl_a.ps uhv_dl.pfa \ |
| 29 |
&& diff uhv_dl_a.ps $srcdir/tests/uhv_dl.ps \ |
| 30 |
&& echo "t1testpage/asc tests OK" \ |
| 31 |
|| failed="$failed t1testpage/asc" |
| 32 |
|
| 33 |
cat uhv_dl.pfb | $LCDF_TYPETOOLS_TREE/t1testpage/t1testpage >uhv_dl_b.ps \ |
| 34 |
&& diff uhv_dl_b.ps $srcdir/tests/uhv_dl.ps \ |
| 35 |
&& echo "t1testpage/bin tests OK" \ |
| 36 |
|| failed="$failed t1testpage/bin" |
| 37 |
|
| 38 |
$LCDF_TYPETOOLS_TREE/t1reencode/t1reencode -e $srcdir/tests/t2c.enc -a $srcdir/tests/uhvrrc8a.pfb uhv_re.tmp \ |
| 39 |
&& grep -v 'Created by t1reencode' uhv_re.tmp >uhv_re.pfa \ |
| 40 |
&& diff uhv_re.pfa $srcdir/tests/uhv_re.pfa \ |
| 41 |
&& echo "t1reencode/asc tests OK" \ |
| 42 |
|| failed="$failed t1reencode/asc" |
| 43 |
|
| 44 |
$LCDF_TYPETOOLS_TREE/t1rawafm/t1rawafm -o uhv_re_a.afm uhv_re.pfa \ |
| 45 |
&& diff uhv_re_a.afm $srcdir/tests/uhv_re.afm \ |
| 46 |
&& echo "t1rawafm/asc tests OK" \ |
| 47 |
|| failed="$failed t1rawafm/asc" |
| 48 |
|
| 49 |
cat $srcdir/tests/uhvrrc8a.pfb | $LCDF_TYPETOOLS_TREE/t1reencode/t1reencode -e $srcdir/tests/t2c.enc -b \ |
| 50 |
| $LCDF_TYPETOOLS_TREE/t1rawafm/t1rawafm >uhv_re_b.afm \ |
| 51 |
&& diff uhv_re_b.afm $srcdir/tests/uhv_re.afm \ |
| 52 |
&& echo "t1reencode+t1rawafm/bin tests OK" \ |
| 53 |
|| failed="$failed t1reencode+t1rawafm/bin" |
| 54 |
|
| 55 |
test -z "$failed" && exit 0 |
| 56 |
echo "failed tests:$failed" |
| 57 |
exit 1 |
| 58 |
|