Debian Codegraph @

texk/web2c/vftovp.test

raw
1 #! /bin/sh -vx
2 # $Id: vftovp.test 68157 2023-09-03 11:26:37Z takuji $
3 # Copyright 2017 Karl Berry <[email protected]>
4 # Copyright 2009-2015 Peter Breitenlohner <[email protected]>
5 # You may freely use, modify and/or distribute this file.
6
7 BinDir=${BinDir:-.}
8 ExeExt=${ExeExt:-}
9 _vftovp=$BinDir/vftovp$ExeExt
10
11 test -d tests || mkdir -p tests
12
13 # pre-generated test results in the repository are stored in LF
14 # but the output might be written in CRLF on some platform.
15 # if 'diff --strip-trailing-cr' is available, exploit it.
16 # (useful for tests on win32 binaries run on MSYS shell)
17 DIFF="diff"
18 $DIFF --strip-trailing-cr $0 $0 \
19 && DIFF="diff --strip-trailing-cr" || echo
20
21 $_vftovp -char=bar -help || exit 1
22
23 $_vftovp -version || exit 2
24
25 TEXMFCNF=$srcdir/../kpathsea
26 TFMFONTS=$srcdir/tests
27 export TEXMFCNF TFMFONTS
28
29 $_vftovp -verbose $srcdir/tests/badvf && exit 3
30
31 $_vftovp -verbose $srcdir/tests/ptmr ptmr tests/xptmra || exit 4
32
33 diff $srcdir/tests/ptmr.vpl tests/xptmra.vpl || exit 5
34
35 $_vftovp -verbose $srcdir/tests/ptmr ptmr >tests/xptmrb.vpl || exit 6
36
37 $DIFF $srcdir/tests/ptmr.vpl tests/xptmrb.vpl || exit 7
38