summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts/check.test
blob: ba97c62c0864576e373fd1f4aeb4d2cd9746808f (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
#! /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.

test -d tests || mkdir -p tests

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

echo && echo "*** ofm2opl check xcheck"
./omfonts -ofm2opl $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"
./omfonts -opl2ofm tests/xcheck tests/xchecked || exit 1

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

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