[med-svn] r19180 - in trunk/packages/R/r-bioc-hypergraph/trunk/debian: . tests

Andreas Tille tille at moszumanska.debian.org
Sat May 9 19:32:58 UTC 2015


Author: tille
Date: 2015-05-09 19:32:58 +0000 (Sat, 09 May 2015)
New Revision: 19180

Modified:
   trunk/packages/R/r-bioc-hypergraph/trunk/debian/README.test
   trunk/packages/R/r-bioc-hypergraph/trunk/debian/changelog
   trunk/packages/R/r-bioc-hypergraph/trunk/debian/tests/run-unit-test
Log:
Fix unit test


Modified: trunk/packages/R/r-bioc-hypergraph/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-hypergraph/trunk/debian/README.test	2015-05-09 19:03:37 UTC (rev 19179)
+++ trunk/packages/R/r-bioc-hypergraph/trunk/debian/README.test	2015-05-09 19:32:58 UTC (rev 19180)
@@ -1,8 +1,11 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-To run the unit tests provided by the package you can do
+This package can be tested by running the provided test:
 
-   sh  run-unit-test
+LC_ALL=C R --no-save <<EOT
+require("BiocGenerics") || stop("unable to load BiocGenerics package")
+BiocGenerics:::testPackage("hypergraph")
+EOT
 
-in this directory.
+in order to confirm its integrity.

Modified: trunk/packages/R/r-bioc-hypergraph/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-bioc-hypergraph/trunk/debian/changelog	2015-05-09 19:03:37 UTC (rev 19179)
+++ trunk/packages/R/r-bioc-hypergraph/trunk/debian/changelog	2015-05-09 19:32:58 UTC (rev 19180)
@@ -1,3 +1,10 @@
+r-bioc-hypergraph (1.40.0-1) unstable; urgency=medium
+
+  * New upstream version
+  * Fix test suite
+
+ -- Andreas Tille <tille at debian.org>  Sat, 09 May 2015 21:14:53 +0200
+
 r-bioc-hypergraph (1.38.1-1) experimental; urgency=medium
 
   * New upstream version

Modified: trunk/packages/R/r-bioc-hypergraph/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-hypergraph/trunk/debian/tests/run-unit-test	2015-05-09 19:03:37 UTC (rev 19179)
+++ trunk/packages/R/r-bioc-hypergraph/trunk/debian/tests/run-unit-test	2015-05-09 19:32:58 UTC (rev 19180)
@@ -1,12 +1,7 @@
 #!/bin/sh -e
 
-oname=hypergraph
-pkg=r-bioc-`echo $oname | tr [A-Z] [a-z]`
-if [ "$ADTTMP" = "" ] ; then
-  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
-fi
-cd $ADTTMP
-cp -a /usr/lib/R/site-library/${oname}/unitTests/* $ADTTMP
-find . -name "*.gz" -exec gunzip \{\} \;
-LC_ALL=C R --slave < runalltests.R
-# rm -f $ADTTMP/*
+LC_ALL=C R --no-save <<EOT
+require("BiocGenerics")
+BiocGenerics:::testPackage("hypergraph")
+EOT
+




More information about the debian-med-commit mailing list