#! /bin/sh -vx # $Id: yannis.test 67982 2023-08-19 15:10:25Z takuji $ # Copyright 2017 Karl Berry # Copyright 2014 Peter Breitenlohner # You may freely use, modify and/or distribute this file. W2CDir=${W2CDir:-..} BinDir=${BinDir:-.} ExeExt=${ExeExt:-} _pltotf=$W2CDir/pltotf$ExeExt _omfonts=$BinDir/omfonts$ExeExt tests=tests test -d $tests || mkdir -p $tests rc=0 TEXMFCNF=$srcdir/../../kpathsea OFMFONTS=".;./$tests" export TEXMFCNF OFMFONTS echo && echo "*** pltotf arabicr yarabicr" $_pltotf $srcdir/$tests/arabicr $tests/yarabicr || rc=1 echo && echo "*** opl2ofm arabicr.pl zyarabicr" $_omfonts -opl2ofm -verbose $srcdir/$tests/arabicr.pl $tests/zyarabicr || rc=2 echo && echo "*** cmp yarabicr.tfm zyarabicr.ofm" cmp $tests/yarabicr.tfm $tests/zyarabicr.ofm || rc=3 echo && echo "*** ofm2opl yarabicr.tfm xyarabicr" $_omfonts -ofm2opl -verbose $tests/yarabicr.tfm $tests/xyarabicr || rc=4 echo && echo "*** ofm2opl zyarabicr zyarabicr" $_omfonts -ofm2opl -verbose $tests/zyarabicr $tests/zyarabicr || rc=5 echo && echo "*** diff xyarabicr.opl zyarabicr.opl" diff $tests/xyarabicr.opl $tests/zyarabicr.opl || rc=6 echo && echo "*** ovp2ovf arabic yarabic yarabic" $_omfonts -ovp2ovf -verbose $srcdir/$tests/arabic $tests/yarabic $tests/yarabic || rc=7 echo && echo "*** ofm2opl yarabic xyarabic" $_omfonts -ofm2opl -verbose $tests/yarabic $tests/xyarabic || rc=8 echo && echo "*** opl2ofm xyarabic xyarabic" $_omfonts -opl2ofm -verbose $tests/xyarabic $tests/xyarabic || rc=9 echo && echo "*** ofm2opl xyarabic yyarabic" $_omfonts -ofm2opl -verbose $tests/xyarabic $tests/yyarabic || rc=10 echo && echo "*** diff xyarabicr.opl yyarabicr.opl" diff $tests/xyarabic.opl $tests/yyarabic.opl || rc=11 echo && echo "*** ovf2ovp yarabic yarabic yyarabic" $_omfonts -ovf2ovp -verbose $tests/yarabic $tests/yarabic $tests/yyarabic || rc=12 echo && echo "*** ovp2ovf yyarabic yyarabic yyarabic" $_omfonts -ovp2ovf -verbose $tests/yyarabic $tests/yyarabic $tests/yyarabic || rc=13 echo && echo "*** ofm2opl yyarabic xyarabic" $_omfonts -ofm2opl -verbose $tests/yyarabic $tests/zyarabic || rc=14 echo && echo "*** diff xyarabicr.opl zyarabicr.opl" diff $tests/xyarabic.opl $tests/zyarabic.opl || rc=15 echo && echo "*** ovf2ovp yyarabic yyarabic zyarabic" $_omfonts -ovf2ovp -verbose $tests/yyarabic $tests/yyarabic $tests/zyarabic || rc=16 echo && echo "*** diff yyarabicr.ovp yyarabicr.ovp" diff $tests/yyarabic.ovp $tests/zyarabic.ovp || rc=17 exit $rc