Skip to content

Commit

Permalink
TeXprof: Adding a simple test
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@72628 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
ruckertm committed Oct 23, 2024
1 parent b046c01 commit 737d18e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 19 deletions.
4 changes: 4 additions & 0 deletions texk/web2c/texprofdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-10-23 Martin Ruckert <[email protected]>

Adding a simple hello world test.

2024-09-07 Karl Berry <[email protected]>

* am/texprof.am (texprofile_c): depend on texprofile-tangle,
Expand Down
32 changes: 13 additions & 19 deletions texk/web2c/texprofdir/am/texprof.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,25 @@ texprof-tangle: ctangle$(EXEEXT) texprofdir/texprof.w tangle-sh
texprofile-tangle: ctangle$(EXEEXT) texprofdir/texprofile.w tangle-sh
$(texprof_ctangle_sh) texprofile

EXTRA_DIST += texprofdir/ChangeLog $(texprof_web)
EXTRA_DIST += texprofdir/ChangeLog $(texprof_web) $(texprofile_web)

DISTCLEANFILES += $(nodist_texprof_SOURCES)
DISTCLEANFILES += texprofile-tangle texprof-tangle

## TeXprof tests
#
#texprof_tests = texprofdir/tests/hello.test \
# texprofdir/tests/rule.test
#
#texprofdir/tests/hello.log: texprof$(EXEEXT) histretch$(EXEEXT)
#texprofdir/tests/rule.log: texprof$(EXEEXT) histretch$(EXEEXT) hishrink$(EXEEXT)
#
#EXTRA_DIST += $(texprof_tests)
#
#if TEXPROF
#TESTS += $(texprof_tests)
#endif TEXPROF
#
## hello.test
#EXTRA_DIST += texprofdir/tests/hello.tex
#DISTCLEANFILES += hello.log
texprof_tests = texprofdir/tests/hello.test

texprofdir/tests/hello.log: texprof$(EXEEXT) texprofile$(EXEEXT)

## rule.test
#EXTRA_DIST += texprofdir/tests/rule.tex
#DISTCLEANFILES += rule.log
EXTRA_DIST += $(texprof_tests)

if TEXPROF
TESTS += $(texprof_tests)
endif TEXPROF

## hello.test
EXTRA_DIST += texprofdir/tests/hello.tex
DISTCLEANFILES += hello.log

# (end of texprof.am)
26 changes: 26 additions & 0 deletions texk/web2c/texprofdir/tests/hello.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh -vx
# $Id: hello.test 61117 2021-11-22 16:45:58Z mruckert $
# Public domain. Originally written by Martin Ruckert
# Basic check that hello.tex can be profiled

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

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

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

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

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

./texprofile hello.tprof || exit $?

exit 0
11 changes: 11 additions & 0 deletions texk/web2c/texprofdir/tests/hello.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
% $Id: hello.tex 61083 2021-11-17 02:55:42Z karl $
% Public domain. Test file for hello,world text.
% Originally written 2021 Martin Ruckert

\catcode`\{=1 \catcode`\}=2 % can run under -ini
\font\tenrm=cmr10 %
\tenrm Hello world!
\vfill

\end

0 comments on commit 737d18e

Please sign in to comment.