| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: charwd.test 67907 2023-08-13 13:50:50Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2010-2014 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_wofm2opl=$BinDir/wofm2opl$ExeExt |
| 10 |
_wopl2ofm=$BinDir/wopl2ofm$ExeExt |
| 11 |
_wovf2ovp=$BinDir/wovf2ovp$ExeExt |
| 12 |
_wovp2ovf=$BinDir/wovp2ovf$ExeExt |
| 13 |
|
| 14 |
tests=omegaware/tests |
| 15 |
|
| 16 |
test -d $tests || mkdir -p $tests |
| 17 |
rc=0 |
| 18 |
|
| 19 |
grep -v 'CHARWD R' $srcdir/$tests/charwd-r.pl >$tests/charwdr.pl |
| 20 |
|
| 21 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 22 |
$_wopl2ofm -verbose $tests/charwdr.pl $tests/charwdr.tfm || rc=1 |
| 23 |
|
| 24 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 25 |
OFMFONTS=".;$tests" \ |
| 26 |
$_wofm2opl -verbose $tests/charwdr.tfm $tests/charwdr.xpl || rc=2 |
| 27 |
|
| 28 |
diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=3 |
| 29 |
|
| 30 |
grep -v 'CHARWD R' $srcdir/$tests/charwd-v.vpl >$tests/charwdv.vpl |
| 31 |
|
| 32 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 33 |
$_wovp2ovf -verbose $tests/charwdv.vpl $tests/charwdv.vf $tests/charwdv.tfm || rc=4 |
| 34 |
|
| 35 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 36 |
OFMFONTS=".;$tests" \ |
| 37 |
$_wofm2opl -verbose $tests/charwdr.tfm $tests/charwdr.xpl || rc=5 |
| 38 |
|
| 39 |
diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=6 |
| 40 |
|
| 41 |
TEXMFCNF=$srcdir/../kpathsea \ |
| 42 |
OFMFONTS=".;$tests" \ |
| 43 |
VFFONTS=$tests \ |
| 44 |
$_wovf2ovp -verbose $tests/charwdv.vf $tests/charwdv.tfm $tests/charwdv.xpl || rc=7 |
| 45 |
|
| 46 |
diff $srcdir/$tests/charwd-v.vpl $tests/charwdv.xpl || rc=8 |
| 47 |
|
| 48 |
exit $rc |