[med-svn] [r-bioc-metagenomeseq] 03/09: Fix autopkgtest

Andreas Tille tille at debian.org
Sun Oct 1 15:31:07 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-metagenomeseq.

commit d822d6c60a9a2ff4422f61400c82367b86913331
Author: Andreas Tille <tille at debian.org>
Date:   Mon Aug 22 20:26:32 2016 +0000

    Fix autopkgtest
---
 debian/README.test         | 10 ++++++++++
 debian/docs                |  1 +
 debian/tests/control       |  2 +-
 debian/tests/run-unit-test | 14 +++-----------
 4 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..98dc1a1
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,10 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+You can run the test suite by doing
+
+R --no-save <<EOT
+BiocGenerics:::testPackage("metagenomeSeq")
+EOT
+
+ -- Andreas Tille <tille at debian.org>  Mon, 16 Jun 2014 16:28:55 +0200
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
index b044b0c..d2aa55a 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @, r-cran-testthat
+Depends: @
 Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 4db5897..488dbef 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -1,13 +1,5 @@
 #!/bin/sh -e
 
-oname=savR
-pkg=r-bioc-`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 -a /usr/share/doc/${pkg}/tests/* $ADTTMP
-LC_ALL=C R --no-save < testthat.R
-rm -fr $ADTTMP/*
+LC_ALL=C R --no-save <<EOT
+BiocGenerics:::testPackage("metagenomeSeq")
+EOT

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



More information about the debian-med-commit mailing list