#! /bin/sh -vx # $Id: overbmp.test 67982 2023-08-19 15:10:25Z takuji $ # Copyright 2017-2018 Karl Berry # Copyright 2013 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 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE tests=omegaware/tests test -d $tests || mkdir -p $tests rc=0 TEXMFCNF=$srcdir/../kpathsea OFMFONTS=./$tests export TEXMFCNF OFMFONTS $_wopl2ofm -verbose $srcdir/$tests/inbmp $tests/xinbmp || rc=1 $_wofm2opl -verbose xinbmp $tests/xinbmp || rc=2 diff $srcdir/$tests/inbmp.opl $tests/xinbmp.opl || rc=3 $_wovp2ovf -verbose $srcdir/$tests/overbmp.ovp $tests/xoverbmp || rc=4 $_wofm2opl -verbose xoverbmp $tests/xoverbmp || rc=5 diff $srcdir/$tests/overbmp.opl $tests/xoverbmp.opl || rc=6 $_wovf2ovp -verbose $tests/xoverbmp xoverbmp $tests/xoverbmp.ovp || rc=7 diff $srcdir/$tests/overbmp.ovp $tests/xoverbmp.ovp || rc=8 sed -e '/OFMLEVEL/s/H 0/H 1/' $tests/xinbmp.opl >$tests/xinbmp1.opl $_wopl2ofm -verbose $tests/xinbmp1 $tests/xinbmp1 || rc=9 $_wofm2opl -verbose xinbmp1 $tests/xinbmp2 || rc=10 diff $tests/xinbmp1.opl $tests/xinbmp1.opl || rc=11 sed -e '/OFMLEVEL/s/H 1/H 0/' -e 's/xinbmp)/xinbmp1)/;s/xoverbmp)/xoverbmp1)/' \ $tests/xoverbmp.ovp >$tests/xoverbmp1.ovp $_wovp2ovf -verbose $tests/xoverbmp1.ovp $tests/xoverbmp1 || rc=12 sed -e '/OFMLEVEL/s/H 1/H 0/' $tests/xoverbmp.opl >$tests/xoverbmp1.opl $_wofm2opl -verbose xoverbmp1 $tests/xoverbmp2 || rc=13 diff $tests/xoverbmp1.opl $tests/xoverbmp2.opl || rc=14 $_wovf2ovp -verbose $tests/xoverbmp1 xoverbmp1 $tests/xoverbmp2 || rc=15 diff $tests/xoverbmp1.ovp $tests/xoverbmp2.ovp || rc=16 exit $rc