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

Andreas Tille tille at moszumanska.debian.org
Tue Mar 18 15:45:38 UTC 2014


Author: tille
Date: 2014-03-18 15:45:37 +0000 (Tue, 18 Mar 2014)
New Revision: 16465

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/tests/control
   trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test
Log:
Fix autopkgtest; enhance long description


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:36:18 UTC (rev 16464)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/README.test	2014-03-18 15:45:37 UTC (rev 16465)
@@ -3,9 +3,11 @@
 
 This package can be tested by running the unit test:
 
-cd /usr/share/doc/r-cran-qtl/tests
+ADTTMP=`mktemp -d /tmp/r-cran-qtl-test.XXXXXX`
+cd $ADTTMP
+cp /usr/share/doc/r-cran-qtl/tests/* .
+gunzip *.gz
 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:36:18 UTC (rev 16464)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/changelog	2014-03-18 15:45:37 UTC (rev 16465)
@@ -6,6 +6,8 @@
   * 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
+  * Provide autopkgtest
+  * Enhance long description (avoid using-first-person-in-description)
 
  -- 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:36:18 UTC (rev 16464)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/control	2014-03-18 15:45:37 UTC (rev 16465)
@@ -3,6 +3,7 @@
 Uploaders: Steffen Moeller <moeller at debian.org>,
            Andreas Tille <tille at debian.org>
 Section: gnu-r
+XS-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
                cdbs,
@@ -32,10 +33,10 @@
  focus on modeling rather than computing.
  .
  A key component of computational methods for QTL mapping is the hidden
- Markov model (HMM) technology for dealing with missing genotype data. We
- have implemented the main HMM algorithms, with allowance for the presence
- of genotyping errors, for backcrosses, intercrosses, and phase-known
- four-way crosses.
+ Markov model (HMM) technology for dealing with missing genotype data. The
+ main HMM algorithms, with allowance for the presence of genotyping errors,
+ for backcrosses, intercrosses, and phase-known four-way crosses
+ were implemented.
  .
  The current version of R/qtl includes facilities for estimating
  genetic maps, identifying genotyping errors, and performing single-QTL

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

Modified: trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test	2014-03-18 15:36:18 UTC (rev 16464)
+++ trunk/packages/R/r-cran-qtl/trunk/debian/tests/run-unit-test	2014-03-18 15:45:37 UTC (rev 16465)
@@ -1,6 +1,11 @@
 #!/bin/sh -e
 
-R --no-save <<EOT
-require("XVector")
-XVector:::run_unitTests()
-EOT
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/r-cran-qtl-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/r-cran-qtl/tests/* $ADTTMP
+gunzip *.gz
+for qtltest in `ls *.R` ; do
+    R --no-save < $qtltest
+done




More information about the debian-med-commit mailing list