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

Andreas Tille tille at moszumanska.debian.org
Tue Jul 29 07:50:00 UTC 2014


Author: tille
Date: 2014-07-29 07:50:00 +0000 (Tue, 29 Jul 2014)
New Revision: 17540

Modified:
   trunk/packages/R/r-bioc-snpstats/trunk/debian/README.test
   trunk/packages/R/r-bioc-snpstats/trunk/debian/docs
   trunk/packages/R/r-bioc-snpstats/trunk/debian/tests/run-unit-test
Log:
Enhance test and documentation how to test


Modified: trunk/packages/R/r-bioc-snpstats/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-snpstats/trunk/debian/README.test	2014-07-29 07:32:07 UTC (rev 17539)
+++ trunk/packages/R/r-bioc-snpstats/trunk/debian/README.test	2014-07-29 07:50:00 UTC (rev 17540)
@@ -1,5 +1,8 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(snpStats)’ in order to confirm its integrity.
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.

Modified: trunk/packages/R/r-bioc-snpstats/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-bioc-snpstats/trunk/debian/docs	2014-07-29 07:32:07 UTC (rev 17539)
+++ trunk/packages/R/r-bioc-snpstats/trunk/debian/docs	2014-07-29 07:50:00 UTC (rev 17540)
@@ -1 +1,2 @@
 debian/README.test
+debian/tests/run-unit-test

Modified: trunk/packages/R/r-bioc-snpstats/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-snpstats/trunk/debian/tests/run-unit-test	2014-07-29 07:32:07 UTC (rev 17539)
+++ trunk/packages/R/r-bioc-snpstats/trunk/debian/tests/run-unit-test	2014-07-29 07:50:00 UTC (rev 17540)
@@ -9,7 +9,11 @@
 cd $ADTTMP
 cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
 gunzip *.gz
+for rnw in *.Rnw ; do
+rfile=`basename $rnw nw`
 R --no-save <<EOT
-Stangle("data-input-vignette.Rnw")
-source("data-input-vignette.R", echo=TRUE)
+  Stangle("$rnw")
+  source("$rfile", echo=TRUE)
 EOT
+done
+




More information about the debian-med-commit mailing list