[Pkg-bazaar-commits] ./bzr-builddeb/trunk r221: Add a test-builddeb command.
James Westby
jw+debian at jameswestby.net
Thu May 15 13:29:39 UTC 2008
------------------------------------------------------------
revno: 221
committer: James Westby <jw+debian at jameswestby.net>
branch nick: trunk
timestamp: Wed 2008-03-19 22:02:39 +0000
message:
Add a test-builddeb command.
modified:
__init__.py
debian/rules
-------------- next part --------------
=== modified file '__init__.py'
--- a/__init__.py 2008-03-19 21:33:05 +0000
+++ b/__init__.py 2008-03-19 22:02:39 +0000
@@ -614,6 +614,20 @@
return result
+class cmd_test_builddeb(Command):
+ """Run the builddeb test suite"""
+
+ hidden = True
+
+ def run(self):
+ from bzrlib.tests import selftest
+ result = selftest(test_suite_factory=test_suite)
+ return result
+
+
+register_command(cmd_test_builddeb)
+
+
if __name__ == '__main__':
print ("This is a Bazaar plugin. Copy this directory to ~/.bazaar/plugins "
"to use it.\n")
=== modified file 'debian/rules'
--- a/debian/rules 2008-03-19 21:19:18 +0000
+++ b/debian/rules 2008-03-19 22:02:39 +0000
@@ -23,7 +23,7 @@
python$* setup.py build
ifeq (,$(findstring nocheck,$(DEBBUILDOPTS)))
ifeq (,$(findstring notest,$(DEBBUILDOPTS)))
- python$* run-tests.py
+ BZR_PLUGIN_PATH="$(CURDIR)/build/lib/bzrlib/plugins/" python$* /usr/bin/bzr test-builddeb
endif
endif
touch $@
More information about the Pkg-bazaar-commits
mailing list