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

Andreas Tille tille at moszumanska.debian.org
Fri Jul 17 22:07:24 UTC 2015


Author: tille
Date: 2015-07-17 22:07:23 +0000 (Fri, 17 Jul 2015)
New Revision: 19646

Added:
   trunk/packages/R/r-cran-rocr/trunk/debian/tests/
   trunk/packages/R/r-cran-rocr/trunk/debian/tests/control
   trunk/packages/R/r-cran-rocr/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-rocr/trunk/debian/README.test
   trunk/packages/R/r-cran-rocr/trunk/debian/changelog
   trunk/packages/R/r-cran-rocr/trunk/debian/docs
Log:
New upstream version + autopkgtest


Modified: trunk/packages/R/r-cran-rocr/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-rocr/trunk/debian/README.test	2015-07-17 22:02:11 UTC (rev 19645)
+++ trunk/packages/R/r-cran-rocr/trunk/debian/README.test	2015-07-17 22:07:23 UTC (rev 19646)
@@ -1,12 +1,8 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(rocr)’ in order to confirm its integrity.
+To run the unit tests provided by the package you can do
 
-Material for more extensive tests is available in 
+   sh  run-unit-test
 
-  /usr/share/doc/r-cran-rocr/README.unittests and
-  /usr/share/doc/r-cran-rocr/unittests
-
- -- Andreas Tille <tille at debian.org>  Tue, 18 Oct 2011 19:46:07 +0200
+in this directory.

Modified: trunk/packages/R/r-cran-rocr/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-rocr/trunk/debian/changelog	2015-07-17 22:02:11 UTC (rev 19645)
+++ trunk/packages/R/r-cran-rocr/trunk/debian/changelog	2015-07-17 22:07:23 UTC (rev 19646)
@@ -1,10 +1,11 @@
-r-cran-rocr (1.0-7-1) UNRELEASED; urgency=medium
+r-cran-rocr (1.0-7-1) unstable; urgency=medium
 
   * New upstream version
   * cme fix dpkg-control
   * debhelper 9
+  * add autopkgtest
 
- -- Andreas Tille <tille at debian.org>  Fri, 17 Jul 2015 23:33:45 +0200
+ -- Andreas Tille <tille at debian.org>  Fri, 17 Jul 2015 23:39:12 +0200
 
 r-cran-rocr (1.0-5-1) unstable; urgency=low
 

Modified: trunk/packages/R/r-cran-rocr/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-rocr/trunk/debian/docs	2015-07-17 22:02:11 UTC (rev 19645)
+++ trunk/packages/R/r-cran-rocr/trunk/debian/docs	2015-07-17 22:07:23 UTC (rev 19646)
@@ -1,2 +1,3 @@
-README.unittests
-unittests
+tools/unittests
+debian/README.test
+debian/tests/run-unit-test

Added: trunk/packages/R/r-cran-rocr/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-rocr/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-rocr/trunk/debian/tests/control	2015-07-17 22:07:23 UTC (rev 19646)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-rocr/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-rocr/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-rocr/trunk/debian/tests/run-unit-test	2015-07-17 22:07:23 UTC (rev 19646)
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+pkg=r-cran-rocr
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/unittests $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+LC_ALL=C R --vanilla < unittests/testsuite.ROCR.R
+rm -f $ADTTMP/*
+
+exit 0




More information about the debian-med-commit mailing list