Ver código fonte

Add 'make check-compat'.

Jelmer Vernooij 12 anos atrás
pai
commit
3aee61cb7d
2 arquivos alterados com 10 adições e 0 exclusões
  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())