summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegaware/ligkern.test
blob: a2f9a91e64b033b9b172022bea6299b6ae613cc1 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#! /bin/sh -vx
# $Id$
# Copyright 2017-2018 Karl Berry <tex-live@tug.org>
# Copyright 2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

tests=omegaware/tests

test -d $tests || mkdir -p $tests

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF 
OFMFONTS=".;./$tests"; export OFMFONTS

ligfiles='ligall ligbch ligblb ligbdy'

for f in $ligfiles; do

echo && echo "*** opl2ofm $f x$f"
./wopl2ofm $srcdir/$tests/$f $tests/x$f || exit 1

echo && echo "*** ofm2opl x$f x$f"
./wofm2opl $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"
./wovp2ovf $srcdir/$tests/ligblv $tests/xligblv $tests/xligblv || exit 1

echo && echo "*** ofm2opl xligblv xligblv"
./wofm2opl $tests/xligblv $tests/xligblv || exit 1

echo && echo "*** diff ligblv.opl xligblv.opl"
diff $srcdir/$tests/ligblv.opl $tests/xligblv.opl || exit 1

echo && echo "*** ofm2opl ligloop1 xligloopx"
./wofm2opl $srcdir/$tests/ligloop1 $tests/xligloopx || exit 1

echo && echo "*** diff ligloop1.opl xligloopx.opl"
diff $srcdir/$tests/ligloop1.opl $tests/xligloopx.opl || exit 1

echo && echo "*** sed xligloopx.opl >xligloop1.opl"
sed -e '/INFINITE/d;/CHANGED/d' $tests/xligloopx.opl >$tests/xligloop1.opl

echo && echo "*** opl2ofm xligloop1 xligloop1"
./wopl2ofm $tests/xligloop1 $tests/xligloop1 || exit 1

echo && echo "*** ofm2opl xligloop1 xligloop2"
./wofm2opl $tests/xligloop1 $tests/xligloop2 || exit 1

echo && echo "*** diff ligloop2.opl xligloop2.opl"
diff $srcdir/$tests/ligloop2.opl $tests/xligloop2.opl || exit 1

echo && echo "*** opl2ofm liguse xliguse1"
./wopl2ofm $srcdir/$tests/liguse $tests/xliguse1 || exit 1

echo && echo "*** ofm2opl xliguse1 xliguse1"
./wofm2opl $tests/xliguse1 $tests/xliguse1 || exit 1

echo && echo "*** diff liguse1.opl xliguse1.opl"
diff $srcdir/$tests/liguse1.opl $tests/xliguse1.opl|| exit 1

echo && echo "*** opl2ofm xliguse1 xliguse2"
./wopl2ofm $tests/xliguse1 $tests/xliguse2 || exit 1

echo && echo "*** ofm2opl xliguse2 xliguse2"
./wofm2opl $tests/xliguse2 $tests/xliguse2 || exit 1

echo && echo "*** diff liguse2.opl xliguse2.opl"
diff $srcdir/$tests/liguse2.opl $tests/xliguse2.opl|| exit 1