summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegaware/charwd.test
blob: 463748810362cdcd2e61d0f076d5a950a0a8b83d (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 -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2010-2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_wofm2opl=$BinDir/wofm2opl$ExeExt
_wopl2ofm=$BinDir/wopl2ofm$ExeExt
_wovf2ovp=$BinDir/wovf2ovp$ExeExt
_wovp2ovf=$BinDir/wovp2ovf$ExeExt

tests=omegaware/tests

test -d $tests || mkdir -p $tests
rc=0

grep -v 'CHARWD R' $srcdir/$tests/charwd-r.pl >$tests/charwdr.pl

TEXMFCNF=$srcdir/../kpathsea \
  $_wopl2ofm -verbose $tests/charwdr.pl $tests/charwdr.tfm || rc=1

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=".;$tests" \
  $_wofm2opl -verbose $tests/charwdr.tfm $tests/charwdr.xpl || rc=2

diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=3

grep -v 'CHARWD R' $srcdir/$tests/charwd-v.vpl >$tests/charwdv.vpl

TEXMFCNF=$srcdir/../kpathsea \
  $_wovp2ovf -verbose $tests/charwdv.vpl $tests/charwdv.vf $tests/charwdv.tfm || rc=4

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=".;$tests" \
  $_wofm2opl -verbose $tests/charwdr.tfm $tests/charwdr.xpl || rc=5

diff $srcdir/$tests/charwd-r.pl $tests/charwdr.xpl || rc=6

TEXMFCNF=$srcdir/../kpathsea \
  OFMFONTS=".;$tests" \
  VFFONTS=$tests \
  $_wovf2ovp -verbose $tests/charwdv.vf $tests/charwdv.tfm $tests/charwdv.xpl || rc=7

diff $srcdir/$tests/charwd-v.vpl $tests/charwdv.xpl || rc=8

exit $rc