s3:test: add a new "valgrindtestenv" target, similar to gdbtestenv
authorMichael Adam <obnox@samba.org>
Fri, 13 Aug 2010 23:54:37 +0000 (01:54 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 13 Aug 2010 23:54:37 +0000 (01:54 +0200)
this runs the daemins in xterm under valgrind instead of in gdb

source3/Makefile.in

index 7aecdbc58f48134be3cd526941b7910a2f355bb3..ae8ad08c18f232ed99869f18c24e22d5738f6180 100644 (file)
@@ -3329,6 +3329,13 @@ gdbtestenv:
                SMBD_VALGRIND="xterm -n smbd -title smbd -e $(selftestdir)/gdb_run $(S3_LD_LIBPATH_OVERRIDE)" \
                TESTS="--testenv"
 
+valgrindtestenv:
+       $(MAKE) test SELFTEST_TESTENV=$(SELFTEST_TESTENV) \
+               NMBD_VALGRIND="xterm -n nmbd -title nmbd -e valgrind -q --db-attach=yes --num-callers=30" \
+               WINBINDD_VALGRIND="xterm -n winbindd -title winbindd -e valgrind -q --db-attach=yes --num-callers=30" \
+               SMBD_VALGRIND="xterm -n smbd -title smbd -e valgrind -q --db-attach=yes --num-callers=30" \
+               TESTS="--testenv"
+
 
 # Check for Winbind struct 32/64bit padding
 test_wbpad: