diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-11-14 16:22:26 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-11-14 16:22:26 +0000 |
commit | 4f9287d3eaf6618730a35a0d11810447b2f65449 (patch) | |
tree | ac8766aaf58ed2e84651411c1ee9a7d8bac7ec93 /Makefile.SH | |
parent | 54bd407c97e6a92e0d8fe74bdc8d886f888a65cc (diff) | |
download | perl-4f9287d3eaf6618730a35a0d11810447b2f65449.tar.gz |
Provide a crude way for specifying the command line for
make test.valgrind
p4raw-id: //depot/perl@26129
Diffstat (limited to 'Makefile.SH')
-rw-r--r-- | Makefile.SH | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH index 12555da8e3..f55271d593 100644 --- a/Makefile.SH +++ b/Makefile.SH @@ -255,6 +255,10 @@ LIB_EXT = $_a OBJ_EXT = $_o PATH_SEP = $p_ +# If you're going to use valgrind and it can't be invoked as plain valgrind +# then you'll need to change this, or override it on the make command line. +VALGRIND=valgrind + FIRSTMAKEFILE = $firstmakefile # Any special object files needed by this architecture, e.g. os2/os2.obj @@ -648,7 +652,7 @@ perl.valgrind.config: 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 ./perl -e 1 2>/dev/null || exit 1 + $(VALGRIND) ./perl -e 1 2>/dev/null || exit 1 # Third Degree Perl (Tru64 only) @@ -1164,7 +1168,7 @@ 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 + PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 VALGRIND='$(VALGRIND)' $(MAKE) _test utest.valgrind ucheck.valgrind: test_prep.valgrind perl.valgrind PERL=./perl PERL_DEBUG=PERL_VALGRIND=1 TEST_ARGS=-utf8 $(MAKE) _test |