summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/hitexdir/tests/hello.test
blob: 6ab7dddb74713c684e705a7aea46e1956abdce6b (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
#!/bin/sh -vx
# $Id$
# Public domain. Originally written by Martin Ruckert
# Basic check that rule.tex can be hitexed stretched and shrinked.

LC_ALL=C; export LC_ALL;  LANGUAGE=C; export LANGUAGE

TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
TEXINPUTS=$srcdir/hitexdir/tests; export TEXINPUTS
TFMFONTS=$srcdir/tests; export TFMFONTS
T1FONTS=$srcdir/tests; export T1FONTS

# separate from hitexdir/tests because automake writes hello.log
# in hitexdir/tests (so it already exists).
OUTDIR=./hitexdir/tests/outdir; mkdir $OUTDIR

#./hitex --help >/dev/null  || exit $?
./hitex --version || exit $?

./hitex -ini -interaction=nonstopmode -output-directory=$OUTDIR hello.tex \
|| exit $?

./histretch -n $OUTDIR/hello.hnt || exit $?

if grep "<section 3 '../../../texk/web2c/tests/cmr10.tfm'>" \
        $OUTDIR/hello.HINT >/dev/null; then
  : # OK
else
  echo "hello.HINT does not contain the proper <section with" \
       " cmr10.tfm, goodbye." >&2
  exit 1
fi

exit 0