[med-svn] [kineticstools] 01/02: Set up build-time tests

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Dec 10 06:38:02 UTC 2015


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

afif-guest pushed a commit to branch master
in repository kineticstools.

commit 1059cd2fe6da7837f49ecafe36457416e91b4076
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Dec 9 22:36:24 2015 -0800

    Set up build-time tests
---
 debian/control                                            |  2 ++
 .../deactivate-tests-requiring-unavailable-data.patch     | 15 +++++++++++++++
 debian/patches/series                                     |  3 +++
 debian/patches/tests-import.patch                         | 15 +++++++++++++++
 debian/patches/verbose-testing.patch                      | 15 +++++++++++++++
 debian/rules                                              |  6 ++++++
 6 files changed, 56 insertions(+)

diff --git a/debian/control b/debian/control
index 9a00a40..717df6e 100644
--- a/debian/control
+++ b/debian/control
@@ -15,6 +15,8 @@ Build-Depends:
 	python-numpy (>= 1.6.0),
 	python-h5py (>= 1.3.0),
 	python-scipy (>= 0.9.0),
+# Test-Depends:
+	python-nose,
 Standards-Version: 3.9.6
 Homepage: https://github.com/PacificBiosciences/kineticsTools
 Vcs-Git: git://anonscm.debian.org/debian-med/kineticstools.git
diff --git a/debian/patches/deactivate-tests-requiring-unavailable-data.patch b/debian/patches/deactivate-tests-requiring-unavailable-data.patch
new file mode 100644
index 0000000..6e845d7
--- /dev/null
+++ b/debian/patches/deactivate-tests-requiring-unavailable-data.patch
@@ -0,0 +1,15 @@
+Description: Don't execute tests that require unavailable data files
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: not-needed
+Last-Update: 2015-11-30
+--- python-kineticstools.orig/Makefile
++++ python-kineticstools/Makefile
+@@ -26,7 +26,7 @@
+ tests: cram-tests unit-tests
+ 
+ cram-tests:
+-	cram test/cram/*.t
++	cram `ls test/cram/*.t | grep -v detection_bam`
+ 
+ long-tests:
+ 	cram test/cram/long_running/*.t
diff --git a/debian/patches/series b/debian/patches/series
index 16baf4a..b63b987 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,4 @@
 man-pages.patch
+tests-import.patch
+deactivate-tests-requiring-unavailable-data.patch
+verbose-testing.patch
diff --git a/debian/patches/tests-import.patch b/debian/patches/tests-import.patch
new file mode 100644
index 0000000..2cc6ab4
--- /dev/null
+++ b/debian/patches/tests-import.patch
@@ -0,0 +1,15 @@
+Description: Fix import statement for tests
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: no
+Last-Update: 2015-10-29
+--- python-kineticstools.orig/bin/testShared.py
++++ python-kineticstools/bin/testShared.py
+@@ -29,7 +29,7 @@
+ #################################################################################
+ 
+ from multiprocessing.process import Process, current_process
+-from src.kineticsTools.sharedArray import SharedArray
++from kineticsTools.sharedArray import SharedArray
+ 
+ # Test script for making sure that shared memory backed numpy arrays work properly
+ # FIXME -- migrate to test dir if possible
diff --git a/debian/patches/verbose-testing.patch b/debian/patches/verbose-testing.patch
new file mode 100644
index 0000000..3712434
--- /dev/null
+++ b/debian/patches/verbose-testing.patch
@@ -0,0 +1,15 @@
+Description: Make test execution verbose
+Author: Afif Elghraoui <afif at ghraoui.name>
+Forwarded: no
+Last-Update: 2015-11-30
+--- python-kineticstools.orig/Makefile
++++ python-kineticstools/Makefile
+@@ -26,7 +26,7 @@
+ tests: cram-tests unit-tests
+ 
+ cram-tests:
+-	cram `ls test/cram/*.t | grep -v detection_bam`
++	cram --verbose `ls test/cram/*.t | grep -v detection_bam`
+ 
+ long-tests:
+ 	cram test/cram/long_running/*.t
diff --git a/debian/rules b/debian/rules
index 4d69305..b5c3f38 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,12 @@ MANDIR = $(INSTDIR)/usr/share/man/
 %:
 	LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild
 
+override_dh_auto_test:
+# Ignore error code here since there looks to be
+# a spurious DistributionNotFound error for some reason
+	-PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="$(MAKE) unit-tests" dh_auto_test
+
 override_dh_auto_install:
 	dh_auto_install
 	mkdir -p $(BINDIR)

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



More information about the debian-med-commit mailing list