[med-svn] r17640 - in trunk/packages/R/r-cran-epi/trunk/debian: . tests

Andreas Tille tille at moszumanska.debian.org
Fri Aug 8 12:39:08 UTC 2014


Author: tille
Date: 2014-08-08 12:39:08 +0000 (Fri, 08 Aug 2014)
New Revision: 17640

Added:
   trunk/packages/R/r-cran-epi/trunk/debian/examples
   trunk/packages/R/r-cran-epi/trunk/debian/tests/
   trunk/packages/R/r-cran-epi/trunk/debian/tests/control
   trunk/packages/R/r-cran-epi/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-epi/trunk/debian/README.test
   trunk/packages/R/r-cran-epi/trunk/debian/changelog
   trunk/packages/R/r-cran-epi/trunk/debian/control
   trunk/packages/R/r-cran-epi/trunk/debian/docs
Log:
New upstream version including autopkgtest based on vignettes


Modified: trunk/packages/R/r-cran-epi/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/README.test	2014-08-08 11:57:07 UTC (rev 17639)
+++ trunk/packages/R/r-cran-epi/trunk/debian/README.test	2014-08-08 12:39:08 UTC (rev 17640)
@@ -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(Epi)’ 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-cran-epi/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/changelog	2014-08-08 11:57:07 UTC (rev 17639)
+++ trunk/packages/R/r-cran-epi/trunk/debian/changelog	2014-08-08 12:39:08 UTC (rev 17640)
@@ -1,3 +1,10 @@
+r-cran-epi (1.1.67-1) unstable; urgency=medium
+
+  * New upstream version
+  * Add autopkgtest based on vignetes
+
+ -- Andreas Tille <tille at debian.org>  Fri, 08 Aug 2014 14:06:53 +0200
+
 r-cran-epi (1.1.65-1) unstable; urgency=medium
 
   * New upstream version

Modified: trunk/packages/R/r-cran-epi/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/control	2014-08-08 11:57:07 UTC (rev 17639)
+++ trunk/packages/R/r-cran-epi/trunk/debian/control	2014-08-08 12:39:08 UTC (rev 17640)
@@ -3,6 +3,7 @@
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev

Modified: trunk/packages/R/r-cran-epi/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/docs	2014-08-08 11:57:07 UTC (rev 17639)
+++ trunk/packages/R/r-cran-epi/trunk/debian/docs	2014-08-08 12:39:08 UTC (rev 17640)
@@ -1 +1,2 @@
 debian/README.test
+debian/tests/run-unit-test

Added: trunk/packages/R/r-cran-epi/trunk/debian/examples
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/examples	                        (rev 0)
+++ trunk/packages/R/r-cran-epi/trunk/debian/examples	2014-08-08 12:39:08 UTC (rev 17640)
@@ -0,0 +1 @@
+vignettes

Added: trunk/packages/R/r-cran-epi/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-epi/trunk/debian/tests/control	2014-08-08 12:39:08 UTC (rev 17640)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-epi/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-epi/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-epi/trunk/debian/tests/run-unit-test	2014-08-08 12:39:08 UTC (rev 17640)
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+oname=epi
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+gunzip *.gz
+for rnw in `ls *.[rR]nw` ; do
+rfile=`echo $rnw | sed 's/\.[rR]nw/.R/'`
+R --no-save <<EOT
+  Stangle("$rnw")
+  source("$rfile", echo=TRUE)
+EOT
+done
+rm -rf *




More information about the debian-med-commit mailing list