summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/ttf2afm.test
blob: ac9ce833349208e2d5ef9797e651cb7c15e562f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh -vx
# $Id: ttf2afm.test 804 2018-05-17 22:29:15Z karl $
# Copyright 2017 Karl Berry <tex-live@tug.org>#
# Copyright 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

TEXMFCNF=$srcdir/../kpathsea
TEXINPUTS=$srcdir/pdftexdir/tests:$srcdir/tests
TEXFONTS=$srcdir/pdftexdir/tests
export TEXMFCNF TEXINPUTS TEXFONTS

testsrc=$srcdir/pdftexdir/tests

failed=

echo "*** ttf2afm postV3.ttf" \
	&& ./ttf2afm postV3.ttf \
	| sed '/Converted at/d' >postV3.afm \
	&& diff $testsrc/postV3.afm postV3.afm \
	&& echo && echo "postV3 tests OK" && echo \
	|| failed="$failed postV3"

echo "*** ttf2afm postV7.ttf" \
	&& ./ttf2afm postV7.ttf \
	| sed '/Converted at/d' >postV7.afm \
	&& diff $testsrc/postV7.afm postV7.afm \
	&& echo && echo "postV7 tests OK" && echo \
	|| failed="$failed postV7"

test -z "$failed" && exit 0
echo
echo "failed tests:$failed"
exit 1