[med-svn] r22703 - in trunk/packages/R/r-bioc-metagenomeseq/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Mon Aug 22 20:26:32 UTC 2016
Author: tille
Date: 2016-08-22 20:26:32 +0000 (Mon, 22 Aug 2016)
New Revision: 22703
Added:
trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/README.test
trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/docs
Modified:
trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/control
trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/run-unit-test
Log:
Fix autopkgtest
Added: trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/README.test (rev 0)
+++ trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/README.test 2016-08-22 20:26:32 UTC (rev 22703)
@@ -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
Added: trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/docs (rev 0)
+++ trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/docs 2016-08-22 20:26:32 UTC (rev 22703)
@@ -0,0 +1 @@
+debian/README.test
Modified: trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/control 2016-08-22 20:21:31 UTC (rev 22702)
+++ trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/control 2016-08-22 20:26:32 UTC (rev 22703)
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @, r-cran-testthat
+Depends: @
Restrictions: allow-stderr
Modified: trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/run-unit-test 2016-08-22 20:21:31 UTC (rev 22702)
+++ trunk/packages/R/r-bioc-metagenomeseq/trunk/debian/tests/run-unit-test 2016-08-22 20:26:32 UTC (rev 22703)
@@ -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
More information about the debian-med-commit
mailing list