diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-16 16:52:50 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-08-16 16:52:50 +0000 |
commit | 7a834142adbc51cc162c81370bff7077f53dd3de (patch) | |
tree | 77e9e203071a9625a7cb8cc1d4a526f3f5fab7ae /Makefile.SH | |
parent | dbc6a9ceb7483f64c7dce330a1c016ff98f808f5 (diff) | |
download | perl-7a834142adbc51cc162c81370bff7077f53dd3de.tar.gz |
Add valgrind testing target.
p4raw-id: //depot/perl@20732
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH index cb04d7cc98..865620796f 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -603,6 +603,17 @@ purecovperl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_e quantperl$(EXE_EXT): $& perlmain$(OBJ_EXT) $(LIBPERL) $(DYNALOADER) $(static_ext) ext.libs $(PERLEXPORT) $(SHRPENV) $(LDLIBPTH) quantify $(CC) -o quantperl $(CLDFLAGS) $(CCDLFLAGS) perlmain$(OBJ_EXT) $(DYNALOADER) $(static_ext) $(LLIBPERL) `cat ext.libs` $(libs) +# Valgrind perl (currently Linux only) + +perl.valgrind.config: config.sh + @echo "To build perl.valgrind you must Configure -Doptimize=-g -Uusemymalloc, checking..." + @$(MAKE) perl.config.dashg + @echo "Checking usemymalloc='n' in config.sh..." + @grep "^usemymalloc=" config.sh + @grep "^usemymalloc='n'" config.sh >/dev/null || exit 1 + @echo "And of course you have to have valgrind..." + valgrind --help >/dev/null || exit 1 + # Third Degree Perl (Tru64 only) perl.config.dashg: @@ -1105,6 +1116,20 @@ test-notty: test_notty test.torture torturetest: test_prep PERL=./perl TEST_ARGS=-torture $(MAKE) _test +# Targets for valgrind testing: + +test_prep.valgrind: test_prep perl.valgrind + PERL=./perl $(MAKE) _test_prep + +test.valgrind check.valgrind: test_prep perl.valgrind.config + PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 $(MAKE) _test + +utest.valgrind ucheck.valgrind: test_prep.valgrind perl.valgrind + PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 TEST_ARGS=-utf8 $(MAKE) _test + +test_notty.valgrind: test_prep.valgrind perl.valgrind + PERL=./perl $(MAKE) PERL_DEBUG=PERL_VALGRIND=1 _test_notty + # Targets for Third Degree testing. test_prep.third: test_prep perl.third |