summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/omegafonts/ofonts.test
blob: ff874a2b7a43455e4bd9c566e6fa04b1b5fa7540 (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) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

test -d tests || mkdir -p tests

VPL='ofontr1 ofontv4'
OVP='ofontr2 ofontr3 ofontv5 ofontv6'

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

for f in $VPL; do
  ./omfonts -opl2ofm $srcdir/tests/$f.pl tests/x$f.tfm || exit 1
  ./omfonts -ofm2opl tests/x$f.tfm tests/x$f.pl || exit 1
  diff $srcdir/tests/$f.pl tests/x$f.pl || exit 1
done

for f in $OVP; do
  ./omfonts -opl2ofm $srcdir/tests/$f tests/x$f || exit 1
  ./omfonts -ofm2opl tests/x$f tests/x$f || exit 1
  diff $srcdir/tests/$f.opl tests/x$f.opl || exit 1
done

rm -rf tests/xofont*

for f in ofontr0; do
  ./omfonts -opl2ofm $srcdir/tests/$f.pl tests/x$f.tfm || exit 1
  ./omfonts -ofm2opl tests/x$f.tfm tests/x$f.pl || exit 1
  diff $srcdir/tests/$f.pl tests/x$f.pl || exit 1
done

for f in $VPL; do
  ./omfonts -ovp2ovf $srcdir/tests/$f.vpl tests/x$f.vf tests/x$f.tfm || exit 1
  ./omfonts -ofm2opl tests/x$f.tfm tests/x$f.pl || exit 1
  diff $srcdir/tests/$f.pl tests/x$f.pl || exit 1
  ./omfonts -ovf2ovp tests/x$f.vf tests/x$f.tfm tests/x$f.vpl || exit 1
  diff $srcdir/tests/$f.vpl tests/x$f.vpl || exit 1
done

for f in $OVP; do
  ./omfonts -ovp2ovf $srcdir/tests/$f tests/x$f tests/x$f || exit 1
  ./omfonts -ofm2opl tests/x$f tests/x$f || exit 1
  diff $srcdir/tests/$f.opl tests/x$f.opl || exit 1
  ./omfonts -ovf2ovp tests/x$f tests/x$f tests/x$f || exit 1
  diff $srcdir/tests/$f.ovp tests/x$f.ovp || exit 1
done

exit 0