| 1 |
#! /bin/sh -vx |
| 2 |
# $Id: specialhex.test 67982 2023-08-19 15:10:25Z takuji $ |
| 3 |
# Copyright 2017 Karl Berry <[email protected]> |
| 4 |
# Copyright 2009, 2011 Peter Breitenlohner <[email protected]> |
| 5 |
# You may freely use, modify and/or distribute this file. |
| 6 |
|
| 7 |
BinDir=${BinDir:-.} |
| 8 |
ExeExt=${ExeExt:-} |
| 9 |
_omfonts=$BinDir/omfonts$ExeExt |
| 10 |
|
| 11 |
tests=tests |
| 12 |
|
| 13 |
test -d $tests || mkdir -p $tests |
| 14 |
rc=0 |
| 15 |
|
| 16 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 17 |
OFMFONTS=./$tests \ |
| 18 |
$_omfonts -ovp2ovf -verbose $srcdir/$tests/specialhex $tests/specialhex $tests/specialhex || rc=1 |
| 19 |
|
| 20 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 21 |
$_omfonts -ofm2opl -verbose $tests/specialhex $tests/specialhex || rc=2 |
| 22 |
|
| 23 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 24 |
$_omfonts -opl2ofm -verbose $tests/specialhex $tests/xspecialhex || rc=3 |
| 25 |
|
| 26 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 27 |
$_omfonts -ofm2opl -verbose $tests/xspecialhex $tests/xspecialhex || rc=4 |
| 28 |
|
| 29 |
diff $tests/specialhex.opl $tests/xspecialhex.opl || rc=5 |
| 30 |
|
| 31 |
TEXMFCNF=$srcdir/../../kpathsea \ |
| 32 |
OFMFONTS=".;./$tests" \ |
| 33 |
$_omfonts -ovf2ovp -verbose $tests/specialhex $tests/specialhex $tests/xspecialhex || rc=6 |
| 34 |
|
| 35 |
diff $srcdir/$tests/specialhex.ovp $tests/xspecialhex.ovp || rc=7 |
| 36 |
|
| 37 |
exit $rc |