[med-svn] [r-bioc-genefilter] 06/14: New upstream version, add autopkgtest
Andreas Tille
tille at debian.org
Mon Oct 2 13:13:38 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-genefilter.
commit 1cc2376459ccf34046b5effb94c4b8acce3bbafc
Author: Andreas Tille <tille at debian.org>
Date: Sun Nov 8 19:43:11 2015 +0000
New upstream version, add autopkgtest
---
debian/README.test | 8 ++++++++
debian/changelog | 7 +++++++
debian/examples | 1 +
debian/tests/control | 3 +++
debian/tests/run-unit-test | 18 ++++++++++++++++++
debian/watch | 2 +-
6 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..ef34ccc
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+ sh run-unit-test
+
+in this directory.
diff --git a/debian/changelog b/debian/changelog
index 703d921..4d21995 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+r-bioc-genefilter (1.52.0-1) unstable; urgency=medium
+
+ * New upstream version
+ * Add autopkgtest
+
+ -- Andreas Tille <tille at debian.org> Sun, 08 Nov 2015 20:33:36 +0100
+
r-bioc-genefilter (1.50.0-1) unstable; urgency=medium
* Initial release (closes: #794279)
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..18244c8
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+vignettes
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..53182d6
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+oname=genefilter
+pkg=r-bioc-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for rnw in `ls *.[rRS]nw` ; do
+rfile=`echo $rnw | sed 's/\.[rRS]nw/.R/'`
+R --no-save <<EOT
+ Stangle("$rnw")
+ source("$rfile", echo=TRUE)
+EOT
+done
+rm -rf *
diff --git a/debian/watch b/debian/watch
index a5eb4b4..c05be04 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,3 @@
version=3
-opts=downloadurlmangle=s/\.\./packages\/release\/bioc/ \
+opts=downloadurlmangle=s?^(.*)\.\.?http:$1packages/release/bioc? \
http://www.bioconductor.org/packages/release/bioc/html/genefilter.html .*/genefilter_([\d\.]+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-bioc-genefilter.git
More information about the debian-med-commit
mailing list