summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegaware/check.test
blob: 9a2b351071b74e7779209e9fab5efc3497fad3f1 (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
#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2014, 2015 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

echo && echo "*** ofm2opl check xcheck"
./wofm2opl $srcdir/$tests/check $tests/xcheck || exit 1

echo && echo "*** diff check.opl xcheck.opl"
diff $srcdir/$tests/check.opl $tests/xcheck.opl || exit 1

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

echo && echo "*** ofm2opl xchecked stdout (xchecked.opl)"
./wofm2opl $tests/xchecked >$tests/xchecked.opl || exit 1

echo && echo "*** diff checked.opl xchecked.opl"
diff $srcdir/$tests/checked.opl $tests/xchecked.opl || exit 1