summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/hitexdir/tests/hello.test
blob: 41f43e4179cdb119dae17ee7dea36218ef0ff92e (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
#!/bin/sh
# $Id: rule.test $
# 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
#PKFONTS=$srcdir/tests; export PKFONTS
T1FONTS=$srcdir/tests; export T1FONTS
OUTDIR=./hitexdir/tests

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

if grep -q "<section 3 '../../../texk/web2c/tests/cmr10.tfm'>" $OUTDIR/hello.HINT
then
    : # OK
else
    echo "hello.HINT does not contain the propper .tfm file" >&2
    exit 1
fi

exit 0