summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/tests/ttfdump.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/ttfdump/tests/ttfdump.test')
-rwxr-xr-xBuild/source/texk/ttfdump/tests/ttfdump.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/ttfdump/tests/ttfdump.test b/Build/source/texk/ttfdump/tests/ttfdump.test
index 4e5c5fb77cb..7592eaea5b0 100755
--- a/Build/source/texk/ttfdump/tests/ttfdump.test
+++ b/Build/source/texk/ttfdump/tests/ttfdump.test
@@ -1,6 +1,6 @@
#! /bin/sh
-# Copyright (C) 2011, 2012 Peter Breitenlohner <tex-live@tug.org>
+# Copyright (C) 2011-2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
TEXMFCNF=$srcdir/../kpathsea
@@ -9,9 +9,10 @@ export TEXMFCNF TTFONTS
failed=
-rm -rf FonetikaDaniaIwonaeRegular.ttf texmfhome.otf ttftest.*
+rm -rf FonetikaDaniaIwonaeRegular.ttf texmfhome.otf ttftest.* bad.*
cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf .
cp $srcdir/tests/texmfhome.otf .
+cp $srcdir/tests/bad.otf .
./ttfdump -t glyf -g 1 -o ttftest.glyf FonetikaDaniaIwonaeRegular.ttf \
&& diff -b $srcdir/tests/ttfdump.glyf ttftest.glyf \
@@ -38,6 +39,11 @@ cp $srcdir/tests/texmfhome.otf .
&& echo "ttfdump.os_2 tests OK" \
|| failed="$failed ttfdump.os_2"
+./ttfdump -t OS/2 bad.otf >ttftest.bad \
+ && diff -b $srcdir/tests/ttfdump.bad ttftest.bad \
+ && echo "ttfdump.bad tests OK" \
+ || failed="$failed ttfdump.bad"
+
test -z "$failed" && exit 0
echo "failed tests:$failed"
exit 1