summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-11-03 00:34:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:46 -0500
commit06d9c68658bc9bebb6d48663cc013fdf6ad472d8 (patch)
treed0ec6ec423baabc660a2ff3b55bf2a9911784410 /source4
parentd8cd73563e3e1cdb7cf23833ac97c596289a27b3 (diff)
downloadsamba-06d9c68658bc9bebb6d48663cc013fdf6ad472d8.tar.gz
samba-06d9c68658bc9bebb6d48663cc013fdf6ad472d8.tar.bz2
samba-06d9c68658bc9bebb6d48663cc013fdf6ad472d8.zip
r19538: This is getting silly, but I needed an easy way to run 'make testenv'
under valgrind. Andrew Bartlett (This used to be commit f2bdbacaa9796ba30689eae295199983cc352590)
Diffstat (limited to 'source4')
-rw-r--r--source4/main.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 5b9cda6c93..5d38cd5e1d 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -310,6 +310,11 @@ valgrindtest-all: all
VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
$(srcdir)/script/tests/selftest.sh ${selftest_prefix} all SOCKET_WRAPPER
+valgrindtest-env: all
+ SMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
+ VALGRIND="valgrind -q --num-callers=30 --log-file=${selftest_prefix}/valgrind.log" \
+ $(srcdir)/script/tests/selftest.sh ${selftest_prefix} xterm SOCKET_WRAPPER
+
gdbtest: gdbtest-quick
gdbtest-quick: all