| 1 |
#!/bin/sh -vx |
| 2 |
# $Id: hello.test 61117 2021-11-22 16:45:58Z mruckert $ |
| 3 |
# Public domain. Originally written by Martin Ruckert |
| 4 |
# Basic check that rule.tex can be hitexed stretched and shrinked. |
| 5 |
|
| 6 |
LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE |
| 7 |
|
| 8 |
TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF |
| 9 |
TEXINPUTS=$srcdir/hitexdir/tests; export TEXINPUTS |
| 10 |
TFMFONTS=$srcdir/tests; export TFMFONTS |
| 11 |
T1FONTS=$srcdir/tests; export T1FONTS |
| 12 |
|
| 13 |
# separate from hitexdir/tests because automake writes hello.log |
| 14 |
# in hitexdir/tests (so it already exists). |
| 15 |
OUTDIR=./hitexdir/tests/outdir; mkdir $OUTDIR |
| 16 |
|
| 17 |
#./hitex --help >/dev/null || exit $? |
| 18 |
./hitex --version || exit $? |
| 19 |
|
| 20 |
./hitex -ini -interaction=nonstopmode -output-directory=$OUTDIR hello.tex \ |
| 21 |
|| exit $? |
| 22 |
|
| 23 |
./histretch $OUTDIR/hello.hnt || exit $? |
| 24 |
|
| 25 |
if grep "<section 3 .*cmr10.tfm'>" \ |
| 26 |
$OUTDIR/hello.hint >/dev/null; then |
| 27 |
: # OK |
| 28 |
else |
| 29 |
echo "hello.hint does not contain the proper <section with" \ |
| 30 |
" cmr10.tfm, goodbye." >&2 |
| 31 |
exit 1 |
| 32 |
fi |
| 33 |
|
| 34 |
exit 0 |