[med-svn] [python-pysam] 03/03: overriding autotest as there is nothing to test until pysam is installed. nose tests are now executables

Jorge Soares jssoares-guest at moszumanska.debian.org
Fri Nov 28 14:28:18 UTC 2014


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

jssoares-guest pushed a commit to branch master
in repository python-pysam.

commit 0bcea417b6081c57c7814fad331793b399dd9a55
Author: Jorge Soares <j.s.soares at gmail.com>
Date:   Fri Nov 28 14:26:44 2014 +0000

    overriding autotest as there is nothing to test until pysam is installed. nose tests are now executables
---
 debian/python-tests/run-nose-tests   |  4 +++-
 debian/python3-tests/run-nose3-tests |  2 ++
 debian/rules                         | 44 +++---------------------------------
 3 files changed, 8 insertions(+), 42 deletions(-)

diff --git a/debian/python-tests/run-nose-tests b/debian/python-tests/run-nose-tests
index 0d19351..2441b1d 100644
--- a/debian/python-tests/run-nose-tests
+++ b/debian/python-tests/run-nose-tests
@@ -5,4 +5,6 @@ if [ "$ADTTMP" = "" ] ; then
 fi
 cd $ADTTMP
 cp -a /usr/share/doc/python-pysam/tests/* $ADTTMP
-nosetesrs --nocapture
+nosetests --nocapture
+rm -rf $ADTTMP
+
diff --git a/debian/python3-tests/run-nose3-tests b/debian/python3-tests/run-nose3-tests
old mode 100644
new mode 100755
index e710ac5..85628ae
--- a/debian/python3-tests/run-nose3-tests
+++ b/debian/python3-tests/run-nose3-tests
@@ -6,3 +6,5 @@ fi
 cd $ADTTMP
 cp -a /usr/share/doc/python3-pysam/tests/* $ADTTMP
 nosetests3 --nocapture
+rm -rf $ADTTMP
+
diff --git a/debian/rules b/debian/rules
index 7cd5155..bad9787 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,44 +14,6 @@ export HTSLIB_INCLUDE_DIR=/usr/include
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild
 
-#Make sure Cython is recreating some c-files.  To enable building twice in a
-#row these will be saved in advance and restored afterwards
-#debian/savefiles:
-#	if grep -q -l "Generated by Cython" pysam/*.c ; then \
-#	    mkdir -p debian/savefiles ; \
-#	    mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles ; \
-	fi
-
-#override_dh_auto_test:
-
-
-#override_dh_clean:
-#	dh_clean
-# restore cython generated files
-#	if [ -d debian/savefiles ] ; then \
-#	    mv debian/savefiles/* pysam ; \
-#	    rm -rf debian/savefiles ; \
-#	fi
-
-#override_dh_auto_build: debian/savefiles
-#	 dh_auto_build
-
-#override_dh_auto_test:
-#ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-#	LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
-#		--test-args='set -e; \
-#			     cp -a $(CURDIR)/tests ${build_dir}/tests ; \
-#			     cd {build_dir}/tests PYTHONPATH=${build_dir} ${interpreter} ./pysam_test.py \
-#			                          && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH=${build_dir} ${interpreter} ./tabix_test.py '
-#endif
-
-#override_dh_install-indep:
-#	dh_install -p $(TESTPKG)
-#	cd debian/$(TESTPKG)/usr/share/doc/python-pysam/tests; \
-#	    make clean; \
-#	    rm -f log.txt ; \
-#	    chmod a+x tabix_test.py
-#	cd debian/$(TESTPKG)/usr/share/doc/python3-pysam/tests; \
-#	    make clean; \
-#	    rm -f log.txt ; \
-#	    chmod a+x tabix_test.py
+override_dh_auto_test:
+#nothing to test until pysam is installed.
+#test packages are provided for both pithon versions

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git



More information about the debian-med-commit mailing list