Debian Codegraph @

texk/web2c/tftopl.test

raw
1 #! /bin/sh -vx
2 # $Id: tftopl.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 _tftopl=$BinDir/tftopl$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 $_tftopl -char=foo -help || exit 1
22
23 $_tftopl -version || exit 2
24
25 TEXMFCNF=$srcdir/../kpathsea
26 export TEXMFCNF
27
28 $_tftopl -verbose $srcdir/tests/badtfm && exit 3
29
30 $_tftopl -verbose $srcdir/tests/cmr10 tests/xcmr10a || exit 4
31
32 diff $srcdir/tests/cmr10.pl tests/xcmr10a.pl || exit 5
33
34 $_tftopl -verbose $srcdir/tests/cmr10 >tests/xcmr10b.pl || exit 6
35
36 $DIFF $srcdir/tests/cmr10.pl tests/xcmr10b.pl || exit 7
37