summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegaware/overbmp.test
blob: 6a9c0dcab0242578e6f3e1d9fcad6e227f1872cf (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
#! /bin/sh

# Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

tests=omegaware/tests

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

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

./opl2ofm -verbose $srcdir/$tests/inbmp $tests/xinbmp || exit 1

./ofm2opl -verbose xinbmp $tests/xinbmp || exit 1

diff $srcdir/$tests/inbmp.opl $tests/xinbmp.opl || exit 1

./ovp2ovf -verbose $srcdir/$tests/overbmp.ovp $tests/xoverbmp || exit 1

./ofm2opl -verbose xoverbmp $tests/xoverbmp || exit 1

diff $srcdir/$tests/overbmp.opl $tests/xoverbmp.opl || exit 1

./ovf2ovp -verbose $tests/xoverbmp xoverbmp $tests/xoverbmp.ovp || exit 1

diff $srcdir/$tests/overbmp.ovp $tests/xoverbmp.ovp || exit 1

sed -e '/OFMLEVEL/s/H 0/H 1/' $tests/xinbmp.opl >$tests/xinbmp1.opl

./opl2ofm -verbose $tests/xinbmp1 $tests/xinbmp1 || exit 1

./ofm2opl -verbose xinbmp1 $tests/xinbmp2 || exit 1

diff $tests/xinbmp1.opl $tests/xinbmp1.opl || exit 1

sed -e '/OFMLEVEL/s/H 1/H 0/' -e 's/xinbmp)/xinbmp1)/;s/xoverbmp)/xoverbmp1)/' \
	$tests/xoverbmp.ovp >$tests/xoverbmp1.ovp

./ovp2ovf -verbose $tests/xoverbmp1.ovp $tests/xoverbmp1 || exit 1

sed -e '/OFMLEVEL/s/H 1/H 0/' $tests/xoverbmp.opl >$tests/xoverbmp1.opl

./ofm2opl -verbose xoverbmp1 $tests/xoverbmp2 || exit 1

diff $tests/xoverbmp1.opl $tests/xoverbmp2.opl || exit 1

./ovf2ovp -verbose $tests/xoverbmp1 xoverbmp1 $tests/xoverbmp2 || exit 1

diff $tests/xoverbmp1.ovp $tests/xoverbmp2.ovp || exit 1