| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: yannis.test 67907 2023-08-13 13:50:50Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2014 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_pltotf=$BinDir/pltotf$ExeExt |
| 10 |
_wofm2opl=$BinDir/wofm2opl$ExeExt |
| 11 |
_wopl2ofm=$BinDir/wopl2ofm$ExeExt |
| 12 |
_wovf2ovp=$BinDir/wovf2ovp$ExeExt |
| 13 |
_wovp2ovf=$BinDir/wovp2ovf$ExeExt |
| 14 |
|
| 15 |
tests=omegaware/tests |
| 16 |
|
| 17 |
test -d $tests || mkdir -p $tests |
| 18 |
rc=0 |
| 19 |
|
| 20 |
TEXMFCNF=$srcdir/../kpathsea |
| 21 |
OFMFONTS=".;./$tests" |
| 22 |
export TEXMFCNF OFMFONTS |
| 23 |
|
| 24 |
echo && echo "*** pltotf arabicr yarabicr" |
| 25 |
$_pltotf $srcdir/$tests/arabicr $tests/yarabicr || rc=1 |
| 26 |
|
| 27 |
echo && echo "*** opl2ofm arabicr.pl zyarabicr" |
| 28 |
$_wopl2ofm $srcdir/$tests/arabicr.pl $tests/zyarabicr || rc=2 |
| 29 |
|
| 30 |
echo && echo "*** cmp yarabicr.tfm zyarabicr.ofm" |
| 31 |
cmp $tests/yarabicr.tfm $tests/zyarabicr.ofm || rc=3 |
| 32 |
|
| 33 |
echo && echo "*** ofm2opl yarabicr.tfm xyarabicr" |
| 34 |
$_wofm2opl $tests/yarabicr.tfm $tests/xyarabicr || rc=4 |
| 35 |
|
| 36 |
echo && echo "*** ofm2opl zyarabicr zyarabicr" |
| 37 |
$_wofm2opl $tests/zyarabicr $tests/zyarabicr || rc=5 |
| 38 |
|
| 39 |
echo && echo "*** diff xyarabicr.opl zyarabicr.opl" |
| 40 |
diff $tests/xyarabicr.opl $tests/zyarabicr.opl || rc=6 |
| 41 |
|
| 42 |
echo && echo "*** ovp2ovf arabic yarabic yarabic" |
| 43 |
$_wovp2ovf $srcdir/$tests/arabic $tests/yarabic $tests/yarabic || rc=7 |
| 44 |
|
| 45 |
echo && echo "*** ofm2opl yarabic xyarabic" |
| 46 |
$_wofm2opl $tests/yarabic $tests/xyarabic || rc=8 |
| 47 |
|
| 48 |
echo && echo "*** opl2ofm xyarabic xyarabic" |
| 49 |
$_wopl2ofm $tests/xyarabic $tests/xyarabic || rc=9 |
| 50 |
|
| 51 |
echo && echo "*** ofm2opl xyarabic yyarabic" |
| 52 |
$_wofm2opl $tests/xyarabic $tests/yyarabic || rc=10 |
| 53 |
|
| 54 |
echo && echo "*** diff xyarabicr.opl yyarabicr.opl" |
| 55 |
diff $tests/xyarabic.opl $tests/yyarabic.opl || rc=11 |
| 56 |
|
| 57 |
echo && echo "*** ovf2ovp yarabic yarabic yyarabic" |
| 58 |
$_wovf2ovp $tests/yarabic $tests/yarabic $tests/yyarabic || rc=12 |
| 59 |
|
| 60 |
echo && echo "*** ovp2ovf yyarabic yyarabic yyarabic" |
| 61 |
$_wovp2ovf $tests/yyarabic $tests/yyarabic $tests/yyarabic || rc=13 |
| 62 |
|
| 63 |
echo && echo "*** ofm2opl yyarabic xyarabic" |
| 64 |
$_wofm2opl $tests/yyarabic $tests/zyarabic || rc=14 |
| 65 |
|
| 66 |
echo && echo "*** diff xyarabicr.opl zyarabicr.opl" |
| 67 |
diff $tests/xyarabic.opl $tests/zyarabic.opl || rc=15 |
| 68 |
|
| 69 |
echo && echo "*** ovf2ovp yyarabic yyarabic zyarabic" |
| 70 |
$_wovf2ovp $tests/yyarabic $tests/yyarabic $tests/zyarabic || rc=16 |
| 71 |
|
| 72 |
echo && echo "*** diff yyarabicr.ovp yyarabicr.ovp" |
| 73 |
diff $tests/yyarabic.ovp $tests/zyarabic.ovp || rc=17 |
| 74 |
|
| 75 |
exit $rc |