summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/ttf2afm.test
blob: 2820dee2c8de02f0b5d28dfee1223e56d8e8fccb (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
#! /bin/sh
#
# Copyright (C) 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