[med-svn] [r-bioc-biocgenerics] 06/07: Add autopkgtest

Andreas Tille tille at debian.org
Wed Oct 15 22:09:52 UTC 2014


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

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

commit 186b57a27fb8ab390cd35e06a094daf04824dab5
Author: Andreas Tille <tille at debian.org>
Date:   Wed Oct 15 23:53:00 2014 +0200

    Add autopkgtest
---
 debian/README.test         | 10 +++++++---
 debian/docs                |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test |  7 +++++++
 4 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/debian/README.test b/debian/README.test
index f998fe8..3872453 100644
--- a/debian/README.test
+++ b/debian/README.test
@@ -1,7 +1,11 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(BiocGenerics)’ in order to confirm its integrity.
+This package can be tested by running the provided test:
 
- -- Andreas Tille <tille at debian.org>  Tue, 12 Jun 2012 11:56:15 +0200
+LC_ALL=C R --no-save <<EOT
+require("BiocGenerics") || stop("unable to load BiocGenerics package")
+BiocGenerics:::.test()
+EOT
+
+in order to confirm its integrity.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..50f6656
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+debian/README.test
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..9c46078
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+LC_ALL=C R --no-save <<EOT
+require("BiocGenerics")
+BiocGenerics:::.test()
+EOT
+

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



More information about the debian-med-commit mailing list