summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/tests/ttfdump.test
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-02-24 12:23:16 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-02-24 12:23:16 +0000
commit0ddb97906a4aca3d70e051d8491cbfc0c82bca67 (patch)
treebb19141488cf439a202d19f0ec0febeb4446a1e3 /Build/source/texk/ttfdump/tests/ttfdump.test
parentb687311a6d56cbb57cac644ea7a269722fb39e90 (diff)
texk/ttfdump: Add a TrueType Collection test
git-svn-id: svn://tug.org/texlive/trunk@36367 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ttfdump/tests/ttfdump.test')
-rwxr-xr-xBuild/source/texk/ttfdump/tests/ttfdump.test54
1 files changed, 37 insertions, 17 deletions
diff --git a/Build/source/texk/ttfdump/tests/ttfdump.test b/Build/source/texk/ttfdump/tests/ttfdump.test
index 7592eaea5b0..e723c912785 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-2013 Peter Breitenlohner <tex-live@tug.org>
+# Copyright (C) 2011-2015 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
TEXMFCNF=$srcdir/../kpathsea
@@ -9,41 +9,61 @@ export TEXMFCNF TTFONTS
failed=
-rm -rf FonetikaDaniaIwonaeRegular.ttf texmfhome.otf ttftest.* bad.*
-cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf .
-cp $srcdir/tests/texmfhome.otf .
-cp $srcdir/tests/bad.otf .
+rm -rf ttftest.*
+#rm -rf FonetikaDaniaIwonaeRegular.ttf bad.otf test.ttc texmfhome.otf ttftest.*
+#cp $srcdir/tests/FonetikaDaniaIwonaeRegular.ttf .
+#cp $srcdir/tests/bad.otf .
+#cp $srcdir/tests/test.ttc .
+#cp $srcdir/tests/texmfhome.otf .
-./ttfdump -t glyf -g 1 -o ttftest.glyf FonetikaDaniaIwonaeRegular.ttf \
+echo "*** ttfdump -t glyf -g 1 -o ttftest.glyf FonetikaDaniaIwonaeRegular.ttf" \
+ && ./ttfdump -t glyf -g 1 -o ttftest.glyf FonetikaDaniaIwonaeRegular.ttf \
&& diff -b $srcdir/tests/ttfdump.glyf ttftest.glyf \
- && echo "ttfdump.glyf tests OK" \
+ && echo "ttfdump.glyf tests OK" && echo \
|| failed="$failed ttfdump.glyf"
-./ttfdump -t GPOS -o ttftest.gpos FonetikaDaniaIwonaeRegular.ttf \
+echo "*** ttfdump -t GPOS -o ttftest.gpos FonetikaDaniaIwonaeRegular.ttf" \
+ && ./ttfdump -t GPOS -o ttftest.gpos FonetikaDaniaIwonaeRegular.ttf \
&& diff -b $srcdir/tests/ttfdump.gpos ttftest.gpos \
- && echo "ttfdump.gpos tests OK" \
+ && echo "ttfdump.gpos tests OK" && echo \
|| failed="$failed ttfdump.gpos"
-./ttfdump -t GSUB -o ttftest.gsub FonetikaDaniaIwonaeRegular.ttf \
+echo "*** ttfdump -t GSUB -o ttftest.gsub FonetikaDaniaIwonaeRegular.ttf" \
+ && ./ttfdump -t GSUB -o ttftest.gsub FonetikaDaniaIwonaeRegular.ttf \
&& diff -b $srcdir/tests/ttfdump.gsub ttftest.gsub \
- && echo "ttfdump.gsub tests OK" \
+ && echo "ttfdump.gsub tests OK" && echo \
|| failed="$failed ttfdump.gsub"
-./ttfdump -t head FonetikaDaniaIwonaeRegular.ttf >ttftest.head \
+echo "*** ttfdump -t head FonetikaDaniaIwonaeRegular.ttf >ttftest.head" \
+ && ./ttfdump -t head FonetikaDaniaIwonaeRegular.ttf >ttftest.head \
&& diff -b $srcdir/tests/ttfdump.head ttftest.head \
- && echo "ttfdump.head tests OK" \
+ && echo "ttfdump.head tests OK" && echo \
|| failed="$failed ttfdump.head"
-./ttfdump -t OS/2 texmfhome.otf >ttftest.os_2 \
+echo "*** ttfdump -t OS/2 texmfhome.otf >ttftest.os_2" \
+ && ./ttfdump -t OS/2 texmfhome.otf >ttftest.os_2 \
&& diff -b $srcdir/tests/ttfdump.os_2 ttftest.os_2 \
- && echo "ttfdump.os_2 tests OK" \
+ && echo "ttfdump.os_2 tests OK" && echo \
|| failed="$failed ttfdump.os_2"
-./ttfdump -t OS/2 bad.otf >ttftest.bad \
+echo "*** ttfdump -t OS/2 bad.otf >ttftest.bad" \
+ && ./ttfdump -t OS/2 bad.otf >ttftest.bad \
&& diff -b $srcdir/tests/ttfdump.bad ttftest.bad \
- && echo "ttfdump.bad tests OK" \
+ && echo "ttfdump.bad tests OK" && echo \
|| failed="$failed ttfdump.bad"
+echo "*** ttfdump -t gasp -c 0 test.ttc >ttftest.gasp" \
+ && ./ttfdump -t gasp -c 0 test.ttc >ttftest.gasp \
+ && diff -b $srcdir/tests/ttfdump.gasp ttftest.gasp \
+ && echo "ttfdump.gasp tests OK" && echo \
+ || failed="$failed ttfdump.gasp"
+
+echo "*** ttfdump -t maxp -c 1 test.ttc >ttftest.maxp" \
+ && ./ttfdump -t maxp -c 1 test.ttc >ttftest.maxp \
+ && diff -b $srcdir/tests/ttfdump.maxp ttftest.maxp \
+ && echo "ttfdump.maxp tests OK" && echo \
+ || failed="$failed ttfdump.maxp"
+
test -z "$failed" && exit 0
echo "failed tests:$failed"
exit 1