Parcourir la source

Add 'make check-compat'.

Jelmer Vernooij il y a 12 ans
Parent
commit
3aee61cb7d
2 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 3 0
      Makefile
  2. 7 0
      dulwich/tests/__init__.py

+ 3 - 0
Makefile

@@ -33,6 +33,9 @@ check-tutorial:: build
 check-nocompat:: build
 	$(RUNTEST) dulwich.tests.nocompat_test_suite
 
+check-compat:: build
+	$(RUNTEST) dulwich.tests.compat_test_suite
+
 check-pypy:: clean
 	$(MAKE) check-noextensions PYTHON=pypy
 

+ 7 - 0
dulwich/tests/__init__.py

@@ -161,6 +161,13 @@ def nocompat_test_suite():
     return result
 
 
+def compat_test_suite():
+    result = unittest.TestSuite()
+    from dulwich.tests.compat import test_suite as compat_test_suite
+    result.addTests(compat_test_suite())
+    return result
+
+
 def test_suite():
     result = unittest.TestSuite()
     result.addTests(self_test_suite())