summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-03-23 14:53:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:43 -0500
commit8d75615bf11a89e8171e70567e698323e71bc428 (patch)
tree9afbc118e6cf702ceaabd7bfc2dcb77583b88311 /source3/Makefile.in
parentca81529f8ceb75680946c4713723b459f26169b7 (diff)
downloadsamba-8d75615bf11a89e8171e70567e698323e71bc428.tar.gz
samba-8d75615bf11a89e8171e70567e698323e71bc428.tar.bz2
samba-8d75615bf11a89e8171e70567e698323e71bc428.zip
r14676: add make valgrindtest and remove old 'make check' and old 'make test'
metze (This used to be commit 789694d12e53ccd327c4a3e4755ef5004503cb4e)
Diffstat (limited to 'source3/Makefile.in')
-rw-r--r--source3/Makefile.in59
1 files changed, 20 insertions, 39 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index d399cb66a5..5f58e0ff3b 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -844,22 +844,6 @@ pch: proto_exists
rm -f $(srcdir)/include/includes.h.gch
$(CC) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $(srcdir)/include/includes.h -o $(srcdir)/include/includes.h.gch
-##
-## Targets for 'make test'
-##
-test: all torture bin/timelimit
- @echo Running Test suite
- @sh ./script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"
-
-# Check for PAM module problems. Specifically, check that every module we
-# built can actually be loaded by a minimal PAM-aware application.
-test_pam_modules: pam_modules
- @echo "Testing $(PAM_MODULES) "
- @for module in $(PAM_MODULES); do \
- ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
- || exit 1; \
- done
-
# These dependencies are only approximately correct: we want to make
# sure Samba's paths are updated if ./configure is re-run. Really it
# would be nice if "make prefix=/opt/samba all" also rebuilt things,
@@ -1725,28 +1709,25 @@ Makefile: $(srcdir)/Makefile.in config.status
######################################################################
# Samba Testing Framework
-# FIXME: LD_LIBRARY_PATH is not portable, but in the absence of
-# libtool I don't know a better way to do it. Perhaps we should fix
-# libbigballofmud to link statically?
+# Check for PAM module problems. Specifically, check that every module we
+# built can actually be loaded by a minimal PAM-aware application.
+test_pam_modules: pam_modules
+ @echo "Testing $(PAM_MODULES) "
+ @for module in $(PAM_MODULES); do \
+ ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \
+ || exit 1; \
+ done
+
##
-## not working...to be replaced by 'make test' --jerry
+## Targets for 'make test'
##
-#check: check-programs
-# LD_LIBRARY_PATH="`pwd`/bin:$$LD_LIBRARY_PATH" \
-# PATH="`pwd`/bin:$$PATH" \
-# python stf/standardcheck.py; \
-# if test -n "$(PYTHON)"; then \
-# python stf/pythoncheck.py; \
-# fi
-
-# These are called by the test suite and need to be built before
-# running it. For the time being we don't build all of BIN_PROGS,
-# because they're not all needed.
-# check-programs: bin/t_strcmp bin/t_strstr bin/t_push_ucs2 bin/smbcontrol bin/t_snprintf bin/t_asn1
-
-#test: all
-# @if test -z "$(SMB4TORTURE)"; then \
-# echo "Please set the SMB4TORTURE environment variable"; \
-# exit 1; \
-# fi
-# ./script/smb4torture.sh `pwd`/prefix-test $(SMB4TORTURE)
+test: all torture bin/timelimit
+ @echo Running Test suite
+ @sh ./script/tests/selftest.sh ${selftest_prefix}/st all "${smbtorture4_path}"
+
+valgrindtest: all torture bin/timelimit
+ @echo Running Test suite with valgrind
+ @NMBD_VALGRIND="xterm -n smbd -e valgrind -q --db-attach=yes --num-callers=30" \
+ 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 "${smbtorture4_path}"