summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-18 07:59:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:58:40 -0500
commit5b831783e3ff9229b707fc201ed27c748f949597 (patch)
tree5b5c92ca39ccdd17d35ea14d17eee44fb3e7dfbd
parentb40afa0c07be98f64c9cbaba029d6f27296f487a (diff)
downloadsamba-5b831783e3ff9229b707fc201ed27c748f949597.tar.gz
samba-5b831783e3ff9229b707fc201ed27c748f949597.tar.bz2
samba-5b831783e3ff9229b707fc201ed27c748f949597.zip
r14536: add make gdbtest-all and make valgrindtest-all
metze (This used to be commit cee56387cf62b3cbcc7fbed5d3549d56c2a2d0da)
-rw-r--r--source4/main.mk17
1 files changed, 15 insertions, 2 deletions
diff --git a/source4/main.mk b/source4/main.mk
index a2adbbb548..f3c79277ea 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -305,15 +305,28 @@ test-noswrap: all
quicktest: all
./script/tests/selftest.sh ${selftest_prefix}/st quick SOCKET_WRAPPER
-valgrindtest: all
+valgrindtest: valgrindtest-quick
+
+valgrindtest-quick: 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}/st/valgrind.log" \
./script/tests/selftest.sh ${selftest_prefix}/st quick SOCKET_WRAPPER
-gdbtest: all
+valgrindtest-all: 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}/st/valgrind.log" \
+ ./script/tests/selftest.sh ${selftest_prefix}/st all SOCKET_WRAPPER
+
+gdbtest: gdbtest-quick
+
+gdbtest-quick: all
SMBD_VALGRIND="xterm -n smbd -e gdb --args " \
./script/tests/selftest.sh ${selftest_prefix}/st quick SOCKET_WRAPPER
+gdbtest-all: all
+ SMBD_VALGRIND="xterm -n smbd -e gdb --args " \
+ ./script/tests/selftest.sh ${selftest_prefix}/st all SOCKET_WRAPPER
+
unused_macros:
./script/find_unused_macros.pl `find . -name "*.[ch]"` | sort