[med-svn] [gbrowse] 01/01: Exclude some tests via debian/tests/pkg-perl/smoke-skip rather than patching the test file
Andreas Tille
tille at debian.org
Mon Jan 16 15:42:41 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository gbrowse.
commit 001a3da64de86d1d98626be6ba75eff9530f5793
Author: Andreas Tille <tille at debian.org>
Date: Mon Jan 16 16:42:19 2017 +0100
Exclude some tests via debian/tests/pkg-perl/smoke-skip rather than patching the test file
---
debian/changelog | 1 +
debian/rules | 11 ++++++-----
debian/tests/pkg-perl/smoke-skip | 8 +++++---
3 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 36d5b87..31fb560 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ gbrowse (2.56+dfsg-1) UNRELEASED; urgency=medium
Closes: #833885
* debhelper 10
* d/watch: version=4
+ * Exclude some tests via debian/tests/pkg-perl/smoke-skip
-- Andreas Tille <tille at debian.org> Wed, 14 Dec 2016 14:48:02 +0100
diff --git a/debian/rules b/debian/rules
index 8d8bff5..5fba88f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,9 @@
GBROWSE_BUILD_OPTIONS = --conf=/etc/gbrowse --htdocs=/usr/share/gbrowse/htdocs --tmp=/var/cache/gbrowse --databases=/var/lib/gbrowse/databases --cgibin=/usr/lib/cgi-bin/gbrowse --www-user=www-data --registration_done=1 --persistent=/var/lib/gbrowse
ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
+SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
+TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t))
+
%:
dh $@ --with apache2
@@ -14,6 +17,9 @@ override_dh_installdirs:
chmod +x debian/gbrowse-calign.dirs
dh_installdirs
+override_dh_auto_test:
+ dh_auto_test -- TEST_FILES="$(TEST_FILES)"
+
override_dh_auto_install:
./Build --install_base=debian/gbrowse debianinstall
#./Build apache_conf > debian/gbrowse/etc/gbrowse/gbrowse_apache2.conf
@@ -54,8 +60,3 @@ override_dh_installman:
dh_installman
rm -rf debian/gbrowse/man
rm -rf debian/gbrowse-calign/man
-
-get-orig-source:
- echo "Please use uscan with Files-Excluded for the next upstream version"
- # . debian/get-orig-source
- # uscan --verbose --force-download --repack --compression xz
diff --git a/debian/tests/pkg-perl/smoke-skip b/debian/tests/pkg-perl/smoke-skip
index 2f82cd3..c6953ed 100644
--- a/debian/tests/pkg-perl/smoke-skip
+++ b/debian/tests/pkg-perl/smoke-skip
@@ -1,3 +1,5 @@
-03.render.t
-04.remoteserver.t
-06.featuresearch.t
+t/03.render.t
+t/04.remoteserver.t
+t/06.featuresearch.t
+
+t/07.karyotype.t
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gbrowse.git
More information about the debian-med-commit
mailing list