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

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

tests=omegaware/tests

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

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

echo 'opl2ofm -verbose vrepeat0 yrepeat0'
./wopl2ofm -verbose $srcdir/$tests/vrepeat0 $tests/yrepeat0 && \
  cmp $srcdir/$tests/vrepeat0.ofm $tests/yrepeat0.ofm && echo || exit 1

echo 'ofm2opl -verbose yrepeat0 yrepeat0'
./wofm2opl -verbose $tests/yrepeat0 $tests/yrepeat0 && \
  diff -u $srcdir/$tests/vrepeat0.opl $tests/yrepeat0.opl && echo || exit 1

echo 'ovp2ovf -verbose vrepeat1 yrepeat1'
./wovp2ovf -verbose $srcdir/$tests/vrepeat1 $tests/yrepeat1 && \
  cmp $srcdir/$tests/vrepeat1.ovf $tests/yrepeat1.ovf && \
  cmp $srcdir/$tests/vrepeat1.ofm $tests/yrepeat1.ofm && echo || exit 1

echo 'ovf2ovp -verbose yrepeat1 yrepeat1 yrepeat1'
./wovf2ovp -verbose $tests/yrepeat1 yrepeat1 $tests/yrepeat1
  diff -u $srcdir/$tests/vrepeat1.ovp $tests/yrepeat1.ovp && echo || exit 1

echo 'ofm2opl -verbose yrepeat1 yrepeat1'
./wofm2opl -verbose $tests/yrepeat1 $tests/yrepeat1 && \
  diff -u $srcdir/$tests/vrepeat1.opl $tests/yrepeat1.opl && echo || exit 1

echo 'opl2ofm -verbose vrepeat1 yrepeat2'
./wopl2ofm -verbose $srcdir/$tests/vrepeat1 $tests/yrepeat2 && \
  cmp $srcdir/$tests/vrepeat1.ofm $tests/yrepeat2.ofm && echo || exit 1

echo 'ofm2opl -verbose yrepeat2 yrepeat2'
./wofm2opl -verbose $tests/yrepeat2 $tests/yrepeat2 && \
  diff -u $srcdir/$tests/vrepeat1.opl $tests/yrepeat2.opl && echo || exit 1

exit 0