summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/ttf2afm.test
blob: 436aa0c1a1d86b1c05a2548d3d7173af96ed7a85 (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
35
#! /bin/sh -vx
# $Id: ttf2afm.test 804 2018-05-17 22:29:15Z karl $
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>#
# Copyright 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS=$srcdir/pdftexdir/tests:$srcdir/tests; export TEXINPUTS;
TEXFONTS=$srcdir/pdftexdir/tests; export 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