blob: 48868201831b9cacd835feaff183e54eed7344ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#! /bin/sh
# Copyright (C) 2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.
test -d tests || mkdir -p tests
TEXMFCNF=$srcdir/../../kpathsea
OFMFONTS='.;./tests'
export TEXMFCNF OFMFONTS
for f in ligall ligbch ligblb ligbdy; do
echo && echo "*** opl2ofm $f x$f"
./omfonts -opl2ofm $srcdir/tests/$f tests/x$f || exit 1
echo && echo "*** ofm2opl x$f x$f"
./omfonts -ofm2opl tests/x$f tests/x$f || exit 1
echo && echo "*** diff $f.opl x$f.opl"
diff $srcdir/tests/$f.opl tests/x$f.opl || exit 1
done
echo && echo "*** ovp2ovf ligblv xligblv xligblv"
./omfonts -ovp2ovf $srcdir/tests/ligblv tests/xligblv tests/xligblv || echo '*** failed ***'
echo && echo "*** ofm2opl xligblv xligblv"
./omfonts -ofm2opl tests/xligblv tests/xligblv || echo '*** failed ***'
echo && echo "*** diff ligblv.opl xligblv.opl"
diff $srcdir/tests/ligblv.opl tests/xligblv.opl >/dev/null || echo '*** failed ***'
echo && echo "*** ofm2opl ligloop1 xligloop1"
./omfonts -ofm2opl $srcdir/tests/ligloop1 tests/xligloop1 || exit 1
echo && echo "*** diff ligloop1.opl xligloop1.opl"
diff $srcdir/tests/ligloop1.opl tests/xligloop1.opl || exit 1
echo && echo "*** opl2ofm xligloop1 xligloop1"
./omfonts -opl2ofm tests/xligloop1 tests/xligloop1 || exit 1
echo && echo "*** ofm2opl xligloop1 xligloop2"
./omfonts -ofm2opl tests/xligloop1 tests/xligloop2 || exit 1
echo && echo "*** diff ligloop1.opl xligloop1.opl"
diff $srcdir/tests/ligloop2.opl tests/xligloop2.opl || exit 1
|