[Python-modules-commits] r8488 - in packages/python-psutil/trunk/debian (rules)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Fri May 15 11:15:07 UTC 2009


    Date: Friday, May 15, 2009 @ 11:15:06
  Author: morph
Revision: 8488

exec tests at build time

Modified:
  packages/python-psutil/trunk/debian/rules

Modified: packages/python-psutil/trunk/debian/rules
===================================================================
--- packages/python-psutil/trunk/debian/rules	2009-05-15 08:08:27 UTC (rev 8487)
+++ packages/python-psutil/trunk/debian/rules	2009-05-15 11:15:06 UTC (rev 8488)
@@ -2,5 +2,15 @@
 %:
 	dh $@
 
+build:
+	dh build
+
+	# run tests
+	for test in test/{dead_process.py,leak_test.py,test_memory_leaks.py,test_psutil.py} ;\
+	do \
+	    echo "running "$$test ; \
+	    PYTHONPATH=. python $$test ; \
+	done
+
 override_dh_installchangelogs:
 	dh_installchangelogs HISTORY




More information about the Python-modules-commits mailing list