add testrepository magic.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 9 Mar 2010 01:14:48 +0000 (02:14 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 9 Mar 2010 01:14:48 +0000 (02:14 +0100)
.bzrignore
.testr.conf [new file with mode: 0644]
dulwich/tests/__init__.py

index 18ddf65f2f71bb7d40c957be61d8fe64fbb43d44..8aca99f45226407e1168d228812f94779efb72e9 100644 (file)
@@ -4,3 +4,4 @@ MANIFEST
 dist
 apidocs
 *,cover
+.testrepository
diff --git a/.testr.conf b/.testr.conf
new file mode 100644 (file)
index 0000000..82cca86
--- /dev/null
@@ -0,0 +1,3 @@
+[DEFAULT]
+test_command=PYTHONPATH=. python -m subunit.run $IDLIST
+test_id_list_default=dulwich.tests.test_suite
index a8737a5c03fd85d95571ef072cd3ce61fd2cc821..e3330d6b9b5994381edfbcc2d02c12d3977373a3 100644 (file)
 # MA  02110-1301, USA.
 
 """Tests for Dulwich."""
+
+import unittest
+
+
+def test_suite():
+    names = [
+        'client',
+        'file',
+        'index',
+        'lru_cache',
+        'objects',
+        'object_store',
+        'pack',
+        'protocol',
+        'repository',
+        'server',
+        'web',
+        ]
+    module_names = ['dulwich.tests.test_' + name for name in names]
+    result = unittest.TestSuite()
+    loader = unittest.TestLoader()
+    suite = loader.loadTestsFromNames(module_names)
+    result.addTests(suite)
+    return result