#! /bin/sh -vx # $Id: ofonts.test 67982 2023-08-19 15:10:25Z takuji $ # Copyright 2017 Karl Berry # Copyright 2009-2014 Peter Breitenlohner # You may freely use, modify and/or distribute this file. BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _wofm2opl=$BinDir/wofm2opl$ExeExt _wopl2ofm=$BinDir/wopl2ofm$ExeExt _wovf2ovp=$BinDir/wovf2ovp$ExeExt _wovp2ovf=$BinDir/wovp2ovf$ExeExt tests=omegaware/tests test -d $tests || mkdir -p $tests rc=0 VPL='ofontr1 ofontv4' OVP='ofontr2 ofontr3 ofontv5 ofontv6' for f in $VPL; do $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=1 TEXMFCNF=$srcdir/../kpathsea \ $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=2 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=3 done for f in $OVP; do $_wopl2ofm -verbose $srcdir/$tests/$f $tests/x$f || rc=4 TEXMFCNF=$srcdir/../kpathsea \ $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=5 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=6 done rm -rf $tests/xofontr* $tests/xofontv* for f in ofontr0; do $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=7 TEXMFCNF=$srcdir/../kpathsea \ $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=8 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=9 done for f in $VPL; do $_wovp2ovf -verbose $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || rc=10 TEXMFCNF=$srcdir/../kpathsea \ $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=11 diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=12 TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=".;$srcdir/$tests" \ $_wovf2ovp -verbose $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || rc=13 diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || rc=14 done for f in $OVP; do $_wovp2ovf -verbose $srcdir/$tests/$f $tests/x$f $tests/x$f || rc=15 TEXMFCNF=$srcdir/../kpathsea \ $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=16 diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=17 TEXMFCNF=$srcdir/../kpathsea \ OFMFONTS=".;$srcdir/$tests" \ $_wovf2ovp -verbose $tests/x$f $tests/x$f $tests/x$f || rc=18 diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || rc=19 done exit $rc