| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: yannis.test 67982 2023-08-19 15:10:25Z 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 |
W2CDir=${W2CDir:-..} |
| 8 |
BinDir=${BinDir:-.} |
| 9 |
ExeExt=${ExeExt:-} |
| 10 |
_pltotf=$W2CDir/pltotf$ExeExt |
| 11 |
_omfonts=$BinDir/omfonts$ExeExt |
| 12 |
|
| 13 |
tests=tests |
| 14 |
|
| 15 |
test -d $tests || mkdir -p $tests |
| 16 |
rc=0 |
| 17 |
|
| 18 |
TEXMFCNF=$srcdir/../../kpathsea |
| 19 |
OFMFONTS=".;./$tests" |
| 20 |
export TEXMFCNF OFMFONTS |
| 21 |
|
| 22 |
echo && echo "*** pltotf arabicr yarabicr" |
| 23 |
$_pltotf $srcdir/$tests/arabicr $tests/yarabicr || rc=1 |
| 24 |
|
| 25 |
echo && echo "*** opl2ofm arabicr.pl zyarabicr" |
| 26 |
$_omfonts -opl2ofm -verbose $srcdir/$tests/arabicr.pl $tests/zyarabicr || rc=2 |
| 27 |
|
| 28 |
echo && echo "*** cmp yarabicr.tfm zyarabicr.ofm" |
| 29 |
cmp $tests/yarabicr.tfm $tests/zyarabicr.ofm || rc=3 |
| 30 |
|
| 31 |
echo && echo "*** ofm2opl yarabicr.tfm xyarabicr" |
| 32 |
$_omfonts -ofm2opl -verbose $tests/yarabicr.tfm $tests/xyarabicr || rc=4 |
| 33 |
|
| 34 |
echo && echo "*** ofm2opl zyarabicr zyarabicr" |
| 35 |
$_omfonts -ofm2opl -verbose $tests/zyarabicr $tests/zyarabicr || rc=5 |
| 36 |
|
| 37 |
echo && echo "*** diff xyarabicr.opl zyarabicr.opl" |
| 38 |
diff $tests/xyarabicr.opl $tests/zyarabicr.opl || rc=6 |
| 39 |
|
| 40 |
echo && echo "*** ovp2ovf arabic yarabic yarabic" |
| 41 |
$_omfonts -ovp2ovf -verbose $srcdir/$tests/arabic $tests/yarabic $tests/yarabic || rc=7 |
| 42 |
|
| 43 |
echo && echo "*** ofm2opl yarabic xyarabic" |
| 44 |
$_omfonts -ofm2opl -verbose $tests/yarabic $tests/xyarabic || rc=8 |
| 45 |
|
| 46 |
echo && echo "*** opl2ofm xyarabic xyarabic" |
| 47 |
$_omfonts -opl2ofm -verbose $tests/xyarabic $tests/xyarabic || rc=9 |
| 48 |
|
| 49 |
echo && echo "*** ofm2opl xyarabic yyarabic" |
| 50 |
$_omfonts -ofm2opl -verbose $tests/xyarabic $tests/yyarabic || rc=10 |
| 51 |
|
| 52 |
echo && echo "*** diff xyarabicr.opl yyarabicr.opl" |
| 53 |
diff $tests/xyarabic.opl $tests/yyarabic.opl || rc=11 |
| 54 |
|
| 55 |
echo && echo "*** ovf2ovp yarabic yarabic yyarabic" |
| 56 |
$_omfonts -ovf2ovp -verbose $tests/yarabic $tests/yarabic $tests/yyarabic || rc=12 |
| 57 |
|
| 58 |
echo && echo "*** ovp2ovf yyarabic yyarabic yyarabic" |
| 59 |
$_omfonts -ovp2ovf -verbose $tests/yyarabic $tests/yyarabic $tests/yyarabic || rc=13 |
| 60 |
|
| 61 |
echo && echo "*** ofm2opl yyarabic xyarabic" |
| 62 |
$_omfonts -ofm2opl -verbose $tests/yyarabic $tests/zyarabic || rc=14 |
| 63 |
|
| 64 |
echo && echo "*** diff xyarabicr.opl zyarabicr.opl" |
| 65 |
diff $tests/xyarabic.opl $tests/zyarabic.opl || rc=15 |
| 66 |
|
| 67 |
echo && echo "*** ovf2ovp yyarabic yyarabic zyarabic" |
| 68 |
$_omfonts -ovf2ovp -verbose $tests/yyarabic $tests/yyarabic $tests/zyarabic || rc=16 |
| 69 |
|
| 70 |
echo && echo "*** diff yyarabicr.ovp yyarabicr.ovp" |
| 71 |
diff $tests/yyarabic.ovp $tests/zyarabic.ovp || rc=17 |
| 72 |
|
| 73 |
exit $rc |