| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: overbmp.test 67982 2023-08-19 15:10:25Z takuji $ |
| 3 |
# Copyright 2017-2018 Karl Berry <[email protected]> |
| 4 |
# Copyright 2013 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 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 15 |
|
| 16 |
tests=omegaware/tests |
| 17 |
|
| 18 |
test -d $tests || mkdir -p $tests |
| 19 |
rc=0 |
| 20 |
|
| 21 |
TEXMFCNF=$srcdir/../kpathsea |
| 22 |
OFMFONTS=./$tests |
| 23 |
export TEXMFCNF OFMFONTS |
| 24 |
|
| 25 |
$_wopl2ofm -verbose $srcdir/$tests/inbmp $tests/xinbmp || rc=1 |
| 26 |
|
| 27 |
$_wofm2opl -verbose xinbmp $tests/xinbmp || rc=2 |
| 28 |
|
| 29 |
diff $srcdir/$tests/inbmp.opl $tests/xinbmp.opl || rc=3 |
| 30 |
|
| 31 |
$_wovp2ovf -verbose $srcdir/$tests/overbmp.ovp $tests/xoverbmp || rc=4 |
| 32 |
|
| 33 |
$_wofm2opl -verbose xoverbmp $tests/xoverbmp || rc=5 |
| 34 |
|
| 35 |
diff $srcdir/$tests/overbmp.opl $tests/xoverbmp.opl || rc=6 |
| 36 |
|
| 37 |
$_wovf2ovp -verbose $tests/xoverbmp xoverbmp $tests/xoverbmp.ovp || rc=7 |
| 38 |
|
| 39 |
diff $srcdir/$tests/overbmp.ovp $tests/xoverbmp.ovp || rc=8 |
| 40 |
|
| 41 |
sed -e '/OFMLEVEL/s/H 0/H 1/' $tests/xinbmp.opl >$tests/xinbmp1.opl |
| 42 |
|
| 43 |
$_wopl2ofm -verbose $tests/xinbmp1 $tests/xinbmp1 || rc=9 |
| 44 |
|
| 45 |
$_wofm2opl -verbose xinbmp1 $tests/xinbmp2 || rc=10 |
| 46 |
|
| 47 |
diff $tests/xinbmp1.opl $tests/xinbmp1.opl || rc=11 |
| 48 |
|
| 49 |
sed -e '/OFMLEVEL/s/H 1/H 0/' -e 's/xinbmp)/xinbmp1)/;s/xoverbmp)/xoverbmp1)/' \ |
| 50 |
$tests/xoverbmp.ovp >$tests/xoverbmp1.ovp |
| 51 |
|
| 52 |
$_wovp2ovf -verbose $tests/xoverbmp1.ovp $tests/xoverbmp1 || rc=12 |
| 53 |
|
| 54 |
sed -e '/OFMLEVEL/s/H 1/H 0/' $tests/xoverbmp.opl >$tests/xoverbmp1.opl |
| 55 |
|
| 56 |
$_wofm2opl -verbose xoverbmp1 $tests/xoverbmp2 || rc=13 |
| 57 |
|
| 58 |
diff $tests/xoverbmp1.opl $tests/xoverbmp2.opl || rc=14 |
| 59 |
|
| 60 |
$_wovf2ovp -verbose $tests/xoverbmp1 xoverbmp1 $tests/xoverbmp2 || rc=15 |
| 61 |
|
| 62 |
diff $tests/xoverbmp1.ovp $tests/xoverbmp2.ovp || rc=16 |
| 63 |
|
| 64 |
exit $rc |