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

Andreas Tille tille at moszumanska.debian.org
Tue Mar 18 15:36:19 UTC 2014


Author: tille
Date: 2014-03-18 15:36:18 +0000 (Tue, 18 Mar 2014)
New Revision: 16464

Added:
   trunk/packages/R/r-cran-qtl/trunk/debian/links
   trunk/packages/R/r-cran-qtl/trunk/debian/tests/
   trunk/packages/R/r-cran-qtl/trunk/debian/tests/control
   trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-qtl/trunk/debian/README.test
   trunk/packages/R/r-cran-qtl/trunk/debian/changelog
   trunk/packages/R/r-cran-qtl/trunk/debian/control
   trunk/packages/R/r-cran-qtl/trunk/debian/rules
Log:
Update debian/README.test to explain how to sensibly test the package


Modified: trunk/packages/R/r-cran-qtl/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/README.test	2014-03-18 15:30:33 UTC (rev 16463)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/README.test	2014-03-18 15:36:18 UTC (rev 16464)
@@ -1,7 +1,11 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(qtl)’ in order to confirm its integrity.
+This package can be tested by running the unit test:
 
- -- Steffen Moeller <steffen_moeller at gmx.de>  Wed, 10 Oct 2007 13:43:39 +0200
+cd /usr/share/doc/r-cran-qtl/tests
+for qtltest in `ls *.R` ; do
+    R --no-save < $qtltest
+done
+
+

Modified: trunk/packages/R/r-cran-qtl/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/changelog	2014-03-18 15:30:33 UTC (rev 16463)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/changelog	2014-03-18 15:36:18 UTC (rev 16464)
@@ -3,6 +3,9 @@
   * New upstream version
   * debian/upstream -> debian/upstream/metadata
   * cme fix dpkg-control
+  * drop "Recommends: r-cran-rlecuyer" since this is neither packaged
+    for Debian nor mentioned inside source code
+  * Update debian/README.test to explain how to sensibly test the package
 
  -- Andreas Tille <tille at debian.org>  Tue, 18 Mar 2014 16:05:24 +0100
 

Modified: trunk/packages/R/r-cran-qtl/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/control	2014-03-18 15:30:33 UTC (rev 16463)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/control	2014-03-18 15:36:18 UTC (rev 16464)
@@ -16,7 +16,6 @@
 Architecture: any
 Depends: ${shlibs:Depends},
          ${R:Depends}
-Recommends: r-cran-rlecuyer
 Suggests: r-cran-snow
 Description: GNU R package for genetic marker linkage analysis
  R/qtl is an extensible, interactive environment for mapping quantitative

Added: trunk/packages/R/r-cran-qtl/trunk/debian/links
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/links	                        (rev 0)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/links	2014-03-18 15:36:18 UTC (rev 16464)
@@ -0,0 +1,4 @@
+usr/lib/R/site-library/qtl/sampledata/gen.txt		usr/share/doc/r-cran-qtl/tests/gen.txt
+usr/lib/R/site-library/qtl/sampledata/listeria.csv	usr/share/doc/r-cran-qtl/tests/listeria.csv
+usr/lib/R/site-library/qtl/sampledata/map.txt		usr/share/doc/r-cran-qtl/tests/map.txt
+usr/lib/R/site-library/qtl/sampledata/phe.txt		usr/share/doc/r-cran-qtl/tests/phe.txt

Modified: trunk/packages/R/r-cran-qtl/trunk/debian/rules
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/rules	2014-03-18 15:30:33 UTC (rev 16463)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/rules	2014-03-18 15:36:18 UTC (rev 16464)
@@ -1,3 +1,9 @@
 #!/usr/bin/make -f
 
 include /usr/share/R/debian/r-cran.mk
+
+install/$(package)::
+	mkdir -p debian/$(package)/usr/share/doc/$(package)
+	mv debian/$(package)/usr/lib/R/site-library/$(cranNameOrig)/contrib debian/$(package)/usr/share/doc/$(package)/examples
+	mkdir -p debian/$(package)/usr/share/doc/$(package)/tests
+	cp -a tests/*.R tests/*.csv tests/*.map tests/*.raw tests/*.Rout.save debian/$(package)/usr/share/doc/$(package)/tests

Added: trunk/packages/R/r-cran-qtl/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/tests/control	2014-03-18 15:36:18 UTC (rev 16464)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test	2014-03-18 15:36:18 UTC (rev 16464)
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+R --no-save <<EOT
+require("XVector")
+XVector:::run_unitTests()
+EOT




More information about the debian-med-commit mailing list