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

Andreas Tille tille at moszumanska.debian.org
Fri Jun 20 06:59:34 UTC 2014


Author: tille
Date: 2014-06-20 06:59:33 +0000 (Fri, 20 Jun 2014)
New Revision: 17249

Added:
   trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/
   trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/control
   trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-dosefinding/trunk/debian/README.test
   trunk/packages/R/r-cran-dosefinding/trunk/debian/changelog
   trunk/packages/R/r-cran-dosefinding/trunk/debian/control
   trunk/packages/R/r-cran-dosefinding/trunk/debian/docs
Log:
New upstream version, add autopkgtest, Test suite needs Rsolnp


Modified: trunk/packages/R/r-cran-dosefinding/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/README.test	2014-06-20 06:26:39 UTC (rev 17248)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/README.test	2014-06-20 06:59:33 UTC (rev 17249)
@@ -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(DoseFinding)’ 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-dosefinding/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/changelog	2014-06-20 06:26:39 UTC (rev 17248)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/changelog	2014-06-20 06:59:33 UTC (rev 17249)
@@ -1,3 +1,14 @@
+r-cran-dosefinding (0.9-11-1) UNRELEASED; urgency=medium
+
+  * New upstream version
+  * Moved debian/upstream to debian/upstream/metadata
+  * cme fix dpkg-control
+  * add autopkgtest
+  TODO: Test suite needs Rsolnp from
+    http://cran.at.r-project.org/web/packages/GenABEL.data/index.html
+
+ -- Andreas Tille <tille at debian.org>  Thu, 19 Jun 2014 23:19:23 +0200
+
 r-cran-dosefinding (0.9-9-1) unstable; urgency=low
 
   * Initial release (closes: #727090)

Modified: trunk/packages/R/r-cran-dosefinding/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/control	2014-06-20 06:26:39 UTC (rev 17248)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/control	2014-06-20 06:59:33 UTC (rev 17249)
@@ -2,13 +2,14 @@
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
+Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev,
                r-cran-lattice,
                r-cran-mvtnorm
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-dosefinding/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-dosefinding/trunk/
 Homepage: http://cran.r-project.org/web/packages/DoseFinding

Modified: trunk/packages/R/r-cran-dosefinding/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/docs	2014-06-20 06:26:39 UTC (rev 17248)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/docs	2014-06-20 06:59:33 UTC (rev 17249)
@@ -1 +1,3 @@
 debian/README.test
+debian/tests/run-unit-test
+tests

Added: trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/control	2014-06-20 06:59:33 UTC (rev 17249)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-dosefinding/trunk/debian/tests/run-unit-test	2014-06-20 06:59:33 UTC (rev 17249)
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+pkg=r-cran-dosefinding
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip *.gz
+ls *.R
+set -x
+for runtest in `ls *.R` ; do
+    if [ "$runtest" = "testsplotDRMod.R" ] ; then
+       echo "$runtest consists only from comments and returns non-zero exit value ... ignored"
+    else
+       R --no-save < $runtest # > /dev/null
+       RET=$?
+       if [ $RET -eq 0 ] ; then
+           echo $runtest passed
+       else
+           echo $runtest failed with return code $RET
+           exit 1
+       fi
+    fi
+done
+#rm -f $ADTTMP/*
+#exit 0




More information about the debian-med-commit mailing list