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

Andreas Tille tille at moszumanska.debian.org
Sun Jun 8 13:53:46 UTC 2014


Author: tille
Date: 2014-06-08 13:53:45 +0000 (Sun, 08 Jun 2014)
New Revision: 17070

Added:
   trunk/packages/R/r-bioc-affy/trunk/debian/tests/
   trunk/packages/R/r-bioc-affy/trunk/debian/tests/control
   trunk/packages/R/r-bioc-affy/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-bioc-affy/trunk/debian/README.test
   trunk/packages/R/r-bioc-affy/trunk/debian/changelog
   trunk/packages/R/r-bioc-affy/trunk/debian/control
   trunk/packages/R/r-bioc-affy/trunk/debian/docs
Log:
Add autopkgtest


Modified: trunk/packages/R/r-bioc-affy/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/README.test	2014-06-08 13:28:03 UTC (rev 17069)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/README.test	2014-06-08 13:53:45 UTC (rev 17070)
@@ -1,5 +1,16 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(affy)’ 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.  Unfortunately three out of four tests can not be run
+since these require affydata experiment files from
+
+   http://bioconductor.org/packages/release/data/experiment/html/affydata.html
+
+This is not yet packaged but you could run the full test suite manually
+in case you would follow the installation instructions there.
+
+ -- Andreas Tille <tille at debian.org>  Sun, 08 Jun 2014 14:24:15 +0200

Modified: trunk/packages/R/r-bioc-affy/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/changelog	2014-06-08 13:28:03 UTC (rev 17069)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/changelog	2014-06-08 13:53:45 UTC (rev 17070)
@@ -1,7 +1,8 @@
-r-bioc-affy (1.42.2-1) UNRELEASED; urgency=medium
+r-bioc-affy (1.42.2-1) unstable; urgency=medium
 
   * New upstream version
   * Add citation
+  * Add autopkgtest
 
  -- Andreas Tille <tille at debian.org>  Sun, 08 Jun 2014 14:24:15 +0200
 

Modified: trunk/packages/R/r-bioc-affy/trunk/debian/control
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/control	2014-06-08 13:28:03 UTC (rev 17069)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/control	2014-06-08 13:53:45 UTC (rev 17070)
@@ -3,6 +3,7 @@
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+XS-Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev,

Modified: trunk/packages/R/r-bioc-affy/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/docs	2014-06-08 13:28:03 UTC (rev 17069)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/docs	2014-06-08 13:53:45 UTC (rev 17070)
@@ -1 +1,2 @@
 debian/README.test
+debian/tests/run-unit-test

Added: trunk/packages/R/r-bioc-affy/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/tests/control	2014-06-08 13:53:45 UTC (rev 17070)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-bioc-affy/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-bioc-affy/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-bioc-affy/trunk/debian/tests/run-unit-test	2014-06-08 13:53:45 UTC (rev 17070)
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+pkg=r-bioc-affy
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/lib/R/site-library/affy/tests/* $ADTTMP
+for runtest in `ls *.R` ; do
+    if ! grep -wq affydata $runtest ; then
+	R --no-save < $runtest
+    else
+	echo "Since affydata is not (yet) packaged we can not run test $runtest"
+    fi
+done
+rm -f $ADTTMP/*




More information about the debian-med-commit mailing list