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

Andreas Tille tille at moszumanska.debian.org
Fri Jun 20 08:30:23 UTC 2014


Author: tille
Date: 2014-06-20 08:30:23 +0000 (Fri, 20 Jun 2014)
New Revision: 17252

Added:
   trunk/packages/R/r-cran-genabel/trunk/debian/tests/
   trunk/packages/R/r-cran-genabel/trunk/debian/tests/control
   trunk/packages/R/r-cran-genabel/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-genabel/trunk/debian/changelog
   trunk/packages/R/r-cran-genabel/trunk/debian/control
   trunk/packages/R/r-cran-genabel/trunk/debian/rules
Log:
New upstream version needs r-cran-genabel.data (uploaded to NEW), try to run unit test but need to ask upstream for missing file


Modified: trunk/packages/R/r-cran-genabel/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-genabel/trunk/debian/changelog	2014-06-20 08:05:11 UTC (rev 17251)
+++ trunk/packages/R/r-cran-genabel/trunk/debian/changelog	2014-06-20 08:30:23 UTC (rev 17252)
@@ -6,10 +6,11 @@
   [ Andreas Tille ]
   * New upstream version
   TODO: needs:
-    http://cran.at.r-project.org/web/packages/GenABEL.data/
+    svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-genabel.data/trunk/
   * Moved debian/upstream to debian/upstream/metadata
   * cme fix dpkg-control
   TODO: autopkgtest based on inst/unitTests
+    Upstream is lacking file doRUnit.R in distribution tarball
 
  -- Andreas Tille <tille at debian.org>  Thu, 19 Jun 2014 16:17:22 +0200
 

Modified: trunk/packages/R/r-cran-genabel/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-genabel/trunk/debian/control	2014-06-20 08:05:11 UTC (rev 17251)
+++ trunk/packages/R/r-cran-genabel/trunk/debian/control	2014-06-20 08:30:23 UTC (rev 17252)
@@ -7,7 +7,8 @@
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev,
-               r-cran-mass
+               r-cran-mass,
+               r-cran-genabel.data
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-genabel/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-genabel/trunk/
@@ -17,7 +18,8 @@
 Architecture: any
 Depends: ${shlibs:Depends},
          ${R:Depends},
-         r-cran-mass
+         r-cran-mass,
+         r-cran-genabel.data
 Suggests: r-cran-genetics,
           r-cran-haplo.stats,
           r-bioc-qvalue

Modified: trunk/packages/R/r-cran-genabel/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-genabel/trunk/debian/rules	2014-06-20 08:05:11 UTC (rev 17251)
+++ trunk/packages/R/r-cran-genabel/trunk/debian/rules	2014-06-20 08:30:23 UTC (rev 17252)
@@ -1,9 +1,8 @@
 #!/usr/bin/make -f
 
-debRreposname=cran
 include /usr/share/R/debian/r-cran.mk
 
 install/$(package)::
 	find debian/$(package)/usr/lib/R/site-library/GenABEL/ -type f -exec chmod 644 \{\} \;
 
-DEB_INSTALL_CHANGELOGS_ALL = CHANGES.LOG
+DEB_INSTALL_CHANGELOGS_ALL = ChangeLog

Added: trunk/packages/R/r-cran-genabel/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-genabel/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-genabel/trunk/debian/tests/control	2014-06-20 08:30:23 UTC (rev 17252)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-genabel/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-genabel/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-genabel/trunk/debian/tests/run-unit-test	2014-06-20 08:30:23 UTC (rev 17252)
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+cranname=GenABEL
+pkg=r-cran-`echo ${cranname} | tr [A-Z] [a-z]`
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/lib/R/site-library/${cranname}/unitTests/* $ADTTMP
+make test
+#rm -f $ADTTMP/*




More information about the debian-med-commit mailing list