[med-svn] [r-cran-ape] 01/01: Add autopkgtest

Andreas Tille tille at debian.org
Thu Jul 28 07:35:15 UTC 2016


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

tille pushed a commit to branch master
in repository r-cran-ape.

commit bd01c593e2212cc96047b419ea0d0d7cb9d983d0
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jul 28 09:34:48 2016 +0200

    Add autopkgtest
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  7 +++++++
 debian/docs                |  2 ++
 debian/examples            |  1 +
 debian/tests/control       |  5 +++++
 debian/tests/run-unit-test | 19 +++++++++++++++++++
 6 files changed, 42 insertions(+)

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 e0eeb5c..1bcb19b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+r-cran-ape (3.5-2) unstable; urgency=medium
+
+  * Team upload
+  * add autopkgtest
+
+ -- Andreas Tille <tille at debian.org>  Thu, 28 Jul 2016 09:34:43 +0200
+
 r-cran-ape (3.5-1) unstable; urgency=low
 
   * New upstream release.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..9a4f4f8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
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..3edd424
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: run-unit-test
+# The following dependencies are not available so this autopkgtest is disabled
+Depends: @
+###, r-bioc-biocstyle, r-bioc-bsgenome.hsapiens.ucsc.hg19
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..9f439a2
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+oname=ape
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+export LC_ALL=C
+for rnw in `ls *.[rR]nw` ; do
+rfile=`echo $rnw | sed 's/\.[rR]nw/.R/'`
+R --no-save <<EOT
+  Stangle("$rnw")
+  source("$rfile", echo=TRUE)
+EOT
+done

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



More information about the debian-med-commit mailing list