summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegaware/ofonts.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/omegaware/ofonts.test')
-rwxr-xr-xBuild/source/texk/web2c/omegaware/ofonts.test61
1 files changed, 61 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/omegaware/ofonts.test b/Build/source/texk/web2c/omegaware/ofonts.test
new file mode 100755
index 00000000000..bf47041b106
--- /dev/null
+++ b/Build/source/texk/web2c/omegaware/ofonts.test
@@ -0,0 +1,61 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2017 Karl Berry <tex-live@tug.org>
+# Copyright 2009-2014 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+tests=omegaware/tests
+
+test -d $tests || mkdir -p $tests
+
+VPL='ofontr1 ofontv4'
+OVP='ofontr2 ofontr3 ofontv5 ofontv6'
+
+for f in $VPL; do
+ ./wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1
+ diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1
+done
+
+for f in $OVP; do
+ ./wopl2ofm -verbose $srcdir/$tests/$f $tests/x$f || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ ./wofm2opl -verbose $tests/x$f $tests/x$f || exit 1
+ diff $srcdir/$tests/$f.opl $tests/x$f.opl || exit 1
+done
+
+rm -rf $tests/xofontr* $tests/xofontv*
+
+for f in ofontr0; do
+ ./wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1
+ diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1
+done
+
+for f in $VPL; do
+ ./wovp2ovf -verbose $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1
+ diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ OFMFONTS=.:$srcdir/$tests \
+ ./wovf2ovp -verbose $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || exit 1
+ diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || exit 1
+done
+
+for f in $OVP; do
+ ./wovp2ovf -verbose $srcdir/$tests/$f $tests/x$f $tests/x$f || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ ./wofm2opl -verbose $tests/x$f $tests/x$f || exit 1
+ diff $srcdir/$tests/$f.opl $tests/x$f.opl || exit 1
+ TEXMFCNF=$srcdir/../kpathsea \
+ OFMFONTS=.:$srcdir/$tests \
+ ./wovf2ovp -verbose $tests/x$f $tests/x$f $tests/x$f || exit 1
+ diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || exit 1
+done
+
+exit 0
+
+