Debian Codegraph @

texk/web2c/texprofdir/tests/hello.test

raw
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 hello.tex can be profiled
5
6 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
7
8 TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
9 TEXINPUTS=$srcdir/texprofdir/tests; export TEXINPUTS
10 TFMFONTS=$srcdir/tests; export TFMFONTS
11 T1FONTS=$srcdir/tests; export T1FONTS
12
13 # separate from texprofdir/tests because automake writes hello.log
14 # in texprofdir/tests (so it already exists).
15 test -d ./texprofdir || mkdir texprofdir
16 test -d ./texprofdir/tests || mkdir texprofdir/tests
17 OUTDIR=./texprofdir/tests/outdir;
18 test -d $OUTDIR || mkdir $OUTDIR
19
20 #./texprof --help >/dev/null || exit $?
21 ./texprof --version || exit $?
22 ./texprofile --version || exit $?
23
24 ./texprof -prof -ini -interaction=nonstopmode -output-directory=$OUTDIR hello.tex \
25 || exit $?
26
27 ./texprofile hello.tprof || exit $?
28
29 exit 0