[med-svn] [r-bioc-ensembldb] 01/02: Upstream switched from unittests to testthat but now even testthat.R importet dataset EnsDb.Hsapiens.v75 which is not packaged. So switch back to basic `Testsuite: autopkgtest-pkg-r` for autopkgtest

Andreas Tille tille at debian.org
Sun Dec 3 08:38:43 UTC 2017


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

tille pushed a commit to branch master
in repository r-bioc-ensembldb.

commit 324937d65594a02e7080dd76176adc6af383db3e
Author: Andreas Tille <tille at debian.org>
Date:   Sun Dec 3 09:32:42 2017 +0100

    Upstream switched from unittests to testthat but now even testthat.R
    importet dataset EnsDb.Hsapiens.v75 which is not packaged.  So switch
    back to basic `Testsuite: autopkgtest-pkg-r` for autopkgtest
---
 debian/README.test         | 13 -------------
 debian/changelog           |  9 +++++++++
 debian/control             |  1 +
 debian/docs                |  1 -
 debian/rules               | 13 -------------
 debian/tests/control       |  3 ---
 debian/tests/run-unit-test |  5 -----
 7 files changed, 10 insertions(+), 35 deletions(-)

diff --git a/debian/README.test b/debian/README.test
deleted file mode 100644
index bb496c4..0000000
--- a/debian/README.test
+++ /dev/null
@@ -1,13 +0,0 @@
-Notes on how this package can be tested.
-────────────────────────────────────────
-
-This package can be tested by running the provided test:
-
-LC_ALL=C R --no-save <<EOT
-BiocGenerics:::testPackage("ensembldb")
-EOT
-
-in order to confirm its integrity.  However, to successfully run this
-testsuite you need to install the EnsDb.Hsapiens.v75 BioConductor
-databases.  It was decided that creating Debian packages of large size
-just to run the test suite is not very sensible.
diff --git a/debian/changelog b/debian/changelog
index 3bdcdaa..a91b600 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+r-bioc-ensembldb (2.2.0-2) UNRELEASED; urgency=medium
+
+  * Upstream switched from unittests to testthat but now even testthat.R
+    importet dataset EnsDb.Hsapiens.v75 which is not packaged.  So switch
+    back to basic `Testsuite: autopkgtest-pkg-r` for autopkgtest
+    Closes: #882355
+
+ -- Andreas Tille <tille at debian.org>  Sun, 03 Dec 2017 09:03:41 +0100
+
 r-bioc-ensembldb (2.2.0-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/control b/debian/control
index 3732836..14aabda 100644
--- a/debian/control
+++ b/debian/control
@@ -2,6 +2,7 @@ Source: r-bioc-ensembldb
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
+Testsuite: autopkgtest-pkg-r
 Priority: optional
 Build-Depends: debhelper (>= 10),
                dh-r,
diff --git a/debian/docs b/debian/docs
deleted file mode 100644
index 50f6656..0000000
--- a/debian/docs
+++ /dev/null
@@ -1 +0,0 @@
-debian/README.test
diff --git a/debian/rules b/debian/rules
index 1355319..4332213 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,21 +1,8 @@
 #!/usr/bin/make -f
 
-debRreposname   := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}' | sed 's/r-\([a-z]\+\)-.*/\1/')
-awkString       := "'/^(Package|Bundle):/ {print $$2 }'"
-cranNameOrig    := $(shell awk "$(awkString)" DESCRIPTION)
-cranName        := $(shell echo "$(cranNameOrig)" | tr A-Z a-z)
-package         := r-$(debRreposname)-$(cranName)
-debRdir         := usr/lib/R/site-library
-debRlib         := $(CURDIR)/debian/$(package)/$(debRdir)
-
 %:
 	dh $@ --buildsystem R
 
 override_dh_fixperms:
 	dh_fixperms
 	find debian -name "*.pl" -exec chmod +x \{\} \;
-
-# remove those unit tests that are requiring EnsDb.Hsapiens.v75
-override_dh_install:
-	dh_install
-	for tst in `grep -H -l 'library(.*EnsDb.Hsapiens.v75.*)' $(debRlib)/$(cranNameOrig)/unitTests/test_*.R` ; do rm -f $${tst} ; done
diff --git a/debian/tests/control b/debian/tests/control
deleted file mode 100644
index 25377fc..0000000
--- a/debian/tests/control
+++ /dev/null
@@ -1,3 +0,0 @@
-Tests: run-unit-test
-Depends: @, r-cran-runit
-Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
deleted file mode 100644
index 5a0e2a1..0000000
--- a/debian/tests/run-unit-test
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-LC_ALL=C R --no-save <<EOT
-BiocGenerics:::testPackage("ensembldb")
-EOT

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



More information about the debian-med-commit mailing list