[Python-modules-commits] [python-psutil] 14/16: run unittests via runner.py

Sandro Tosi morph at moszumanska.debian.org
Sun Apr 10 19:44:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository python-psutil.

commit 47705feae2f0a483080c16b3576cee7127916110
Author: Sandro Tosi <morph at debian.org>
Date:   Sun Apr 10 20:40:01 2016 +0100

    run unittests via runner.py
---
 debian/changelog |  3 ++-
 debian/rules     | 13 +++++--------
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 30f120a..4679b50 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,11 +6,12 @@ python-psutil (4.1.0-1) UNRELEASED; urgency=medium
     - install examples from 'scripts' directory
   * debian/rules
     - run build also for the debug flavor
+    - run unittests via runner.py
 
   [ Ondřej Nový ]
   * Fixed VCS URL
 
- -- Sandro Tosi <morph at debian.org>  Sun, 10 Apr 2016 15:11:57 +0100
+ -- Sandro Tosi <morph at debian.org>  Sun, 10 Apr 2016 20:39:49 +0100
 
 python-psutil (3.4.2-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 3980052..e28d7b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,16 +29,13 @@ override_dh_auto_install:
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 	# run tests
-	-for test in test_memory_leaks.py test_psutil.py ;\
-	do \
-	    for python in $(PY2VERS) $(PY3VERS); do \
-  	        echo "running "test/$$test" on "$$python ; \
+	-for python in $(PY2VERS) $(PY3VERS); do \
+		echo "running tests on "$$python ; \
 		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)") ; \
-	        PYTHONPATH=$(CURDIR)/$$LIB $$python test/$$test ; \
-  	        echo "running "test/$$test" on "$$python-dbg ; \
+		PYTHONPATH=$(CURDIR)/$$LIB $$python $(CURDIR)/$$LIB/psutil/tests/runner.py ; \
+		echo "running tests on "$$python-dbg ; \
 		LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)") ; \
-	        PYTHONPATH=$(CURDIR)/$$LIB $$python-dbg test/$$test ; \
-	    done ; \
+		PYTHONPATH=$(CURDIR)/$$LIB $$python-dbg $(CURDIR)/$$LIB/psutil/tests/runner.py ; \
 	done
 endif
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-psutil.git



More information about the Python-modules-commits mailing list