Debian Codegraph @

texk/web2c/omegaware/selectfont.test

raw
1 #! /bin/sh -vx
2 # $Id: selectfont.test 67907 2023-08-13 13:50:50Z takuji $
3 # Copyright 2017 Karl Berry <[email protected]>
4 # Copyright 2011-2015 Peter Breitenlohner <[email protected]>
5 # You may freely use, modify and/or distribute this file.
6
7 BinDir=${BinDir:-.}
8 ExeExt=${ExeExt:-}
9 _wofm2opl=$BinDir/wofm2opl$ExeExt
10 _wopl2ofm=$BinDir/wopl2ofm$ExeExt
11 _wovf2ovp=$BinDir/wovf2ovp$ExeExt
12 _wovp2ovf=$BinDir/wovp2ovf$ExeExt
13
14 # pre-generated test results in the repository are stored in LF
15 # but the output might be written in CRLF on some platform.
16 # if 'diff --strip-trailing-cr' is available, exploit it.
17 # (useful for tests on win32 binaries run on MSYS shell)
18 DIFF="diff"
19 $DIFF --strip-trailing-cr $0 $0 \
20 && DIFF="diff --strip-trailing-cr" || echo
21
22 tests=omegaware/tests
23
24 test -d $tests || mkdir -p $tests
25 rc=0
26
27 TEXMFCNF=$srcdir/../kpathsea
28 OFMFONTS=./$tests
29 export TEXMFCNF OFMFONTS
30
31 $_wopl2ofm -verbose $srcdir/$tests/sample0-h $tests/sample0-h || rc=1
32
33 $_wopl2ofm -verbose $srcdir/$tests/sample0-h $tests/sample1-h || rc=2
34
35 $_wofm2opl -verbose sample1-h $tests/sample1-h || rc=3
36
37 diff $srcdir/$tests/sample0-h.opl $tests/sample1-h.opl || rc=4
38
39 $_wovp2ovf -verbose $srcdir/$tests/sample $tests/sample $tests/sample || rc=5
40
41 $_wovf2ovp -verbose $tests/sample sample $tests/xsample.out || rc=6
42
43 diff $srcdir/$tests/sample.out $tests/xsample.out || rc=7
44
45 $_wovp2ovf -verbose $srcdir/$tests/sample.ovp $tests/sample2.ovf || rc=8
46
47 $_wovf2ovp -verbose $tests/sample2 sample2 >$tests/xsample2.out || rc=9
48
49 $DIFF $srcdir/$tests/sample.out $tests/xsample2.out || rc=10
50
51 exit $rc