diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-13 13:50:50 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2023-08-13 13:50:50 +0000 |
commit | 52b65a3bc0146979fbe0bc851d97d07b38bab70e (patch) | |
tree | fc5da28d3e6d4632999ebeb31bc42ece26e26120 /Build/source/texk/web2c/omegaware/ofonts.test | |
parent | d5a647a24d7655fc88df6df40f7a192e2e468fad (diff) |
omegaware: update tests
git-svn-id: svn://tug.org/texlive/trunk@67907 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegaware/ofonts.test')
-rwxr-xr-x | Build/source/texk/web2c/omegaware/ofonts.test | 62 |
1 files changed, 38 insertions, 24 deletions
diff --git a/Build/source/texk/web2c/omegaware/ofonts.test b/Build/source/texk/web2c/omegaware/ofonts.test index bf47041b106..5a917fb8635 100755 --- a/Build/source/texk/web2c/omegaware/ofonts.test +++ b/Build/source/texk/web2c/omegaware/ofonts.test @@ -4,58 +4,72 @@ # Copyright 2009-2014 Peter Breitenlohner <tex-live@tug.org> # 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 + +# pre-generated test results in the repository are stored in LF +# but the output might be written in CRLF on some platform. +# if 'diff --strip-trailing-cr' is available, exploit it. +# (useful for tests on win32 binaries run on MSYS shell) +DIFF="diff" +$DIFF --strip-trailing-cr $0 $0 \ + && DIFF="diff --strip-trailing-cr" || echo + tests=omegaware/tests test -d $tests || mkdir -p $tests +rc=0 VPL='ofontr1 ofontv4' OVP='ofontr2 ofontr3 ofontv5 ofontv6' for f in $VPL; do - ./wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || exit 1 + $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=1 TEXMFCNF=$srcdir/../kpathsea \ - ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1 - diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1 + $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=2 + diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=3 done for f in $OVP; do - ./wopl2ofm -verbose $srcdir/$tests/$f $tests/x$f || exit 1 + $_wopl2ofm -verbose $srcdir/$tests/$f $tests/x$f || rc=4 TEXMFCNF=$srcdir/../kpathsea \ - ./wofm2opl -verbose $tests/x$f $tests/x$f || exit 1 - diff $srcdir/$tests/$f.opl $tests/x$f.opl || exit 1 + $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=5 + diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=6 done rm -rf $tests/xofontr* $tests/xofontv* for f in ofontr0; do - ./wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || exit 1 + $_wopl2ofm -verbose $srcdir/$tests/$f.pl $tests/x$f.tfm || rc=7 TEXMFCNF=$srcdir/../kpathsea \ - ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1 - diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1 + $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=8 + diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=9 done for f in $VPL; do - ./wovp2ovf -verbose $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || exit 1 + $_wovp2ovf -verbose $srcdir/$tests/$f.vpl $tests/x$f.vf $tests/x$f.tfm || rc=10 TEXMFCNF=$srcdir/../kpathsea \ - ./wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || exit 1 - diff $srcdir/$tests/$f.pl $tests/x$f.pl || exit 1 + $_wofm2opl -verbose $tests/x$f.tfm $tests/x$f.pl || rc=11 + diff $srcdir/$tests/$f.pl $tests/x$f.pl || rc=12 TEXMFCNF=$srcdir/../kpathsea \ - OFMFONTS=.:$srcdir/$tests \ - ./wovf2ovp -verbose $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || exit 1 - diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || exit 1 + OFMFONTS=".;$srcdir/$tests" \ + $_wovf2ovp -verbose $tests/x$f.vf $tests/x$f.tfm $tests/x$f.vpl || rc=13 + diff $srcdir/$tests/$f.vpl $tests/x$f.vpl || rc=14 done for f in $OVP; do - ./wovp2ovf -verbose $srcdir/$tests/$f $tests/x$f $tests/x$f || exit 1 + $_wovp2ovf -verbose $srcdir/$tests/$f $tests/x$f $tests/x$f || rc=15 TEXMFCNF=$srcdir/../kpathsea \ - ./wofm2opl -verbose $tests/x$f $tests/x$f || exit 1 - diff $srcdir/$tests/$f.opl $tests/x$f.opl || exit 1 + $_wofm2opl -verbose $tests/x$f $tests/x$f || rc=16 + diff $srcdir/$tests/$f.opl $tests/x$f.opl || rc=17 TEXMFCNF=$srcdir/../kpathsea \ - OFMFONTS=.:$srcdir/$tests \ - ./wovf2ovp -verbose $tests/x$f $tests/x$f $tests/x$f || exit 1 - diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || exit 1 + OFMFONTS=".;$srcdir/$tests" \ + $_wovf2ovp -verbose $tests/x$f $tests/x$f $tests/x$f || rc=18 + diff $srcdir/$tests/$f.ovp $tests/x$f.ovp || rc=19 done -exit 0 - - +exit $rc |