Rev 1234: Add some extra targets to makefile to ease debugging. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4/
Jelmer Vernooij
jelmer at samba.org
Tue Jun 17 21:23:55 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4/
------------------------------------------------------------
revno: 1234
revision-id: jelmer at samba.org-20080617202354-kjwsfvx2j486yrep
parent: jelmer at samba.org-20080617195350-opqh4swky27h0ky7
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Tue 2008-06-17 22:23:54 +0200
message:
Add some extra targets to makefile to ease debugging.
modified:
Makefile makefile.other-20080311181537-5svhje3v1flh1n4f-1
=== modified file 'Makefile'
--- a/Makefile 2008-05-29 11:46:02 +0000
+++ b/Makefile 2008-06-17 20:23:54 +0000
@@ -8,7 +8,7 @@
RST2HTML ?= rst2html
TESTS ?=
-all:: build README.html FAQ.html AUTHORS.html
+all:: build build-inplace README.html FAQ.html AUTHORS.html
build::
$(SETUP) build
@@ -21,6 +21,7 @@
clean::
$(SETUP) clean
+ rm -f *.so
TMP_PLUGINS_DIR = $(shell pwd)/.plugins
@@ -31,7 +32,7 @@
ln -sf .. $@
check:: build-inplace $(TMP_PLUGINS_DIR)/svn
- BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(BZR) selftest $(TEST_OPTIONS) --starting-with=bzrlib.plugins.svn $(TESTS)
+ BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(DEBUGGER) $(PYTHON) $(PYTHON_OPTIONS) $(BZR) selftest $(TEST_OPTIONS) --starting-with=bzrlib.plugins.svn $(TESTS)
check-verbose::
$(MAKE) check TEST_OPTIONS=-v
@@ -39,6 +40,15 @@
check-one::
$(MAKE) check TEST_OPTIONS=--one
+check-random::
+ $(MAKE) check TEST_OPTIONS="--random=now --verbose --one"
+
+valgrind-check::
+ $(MAKE) check DEBUGGER="valgrind --suppressions=/usr/lib/valgrind/python.supp $(VALGRIND_OPTIONS)"
+
+gdb-check::
+ $(MAKE) check DEBUGGER="gdb --args $(GDB_OPTIONS)"
+
show-plugins::
BZR_PLUGIN_PATH=$(TMP_PLUGINS_DIR) $(BZR) plugins
More information about the bazaar-commits
mailing list