[med-svn] r17223 - in trunk/packages/R/r-cran-haplo.stats/trunk/debian: . tests

Andreas Tille tille at moszumanska.debian.org
Thu Jun 19 12:07:37 UTC 2014


Author: tille
Date: 2014-06-19 12:07:37 +0000 (Thu, 19 Jun 2014)
New Revision: 17223

Added:
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/docs
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/control
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/run-unit-test
Modified:
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/README.test
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/changelog
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/control
   trunk/packages/R/r-cran-haplo.stats/trunk/debian/lintian-overrides
Log:
New upstream version; add manually crafted autopkgtest


Modified: trunk/packages/R/r-cran-haplo.stats/trunk/debian/README.test
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/README.test	2014-06-19 09:06:09 UTC (rev 17222)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/README.test	2014-06-19 12:07:37 UTC (rev 17223)
@@ -1,5 +1,8 @@
 Notes on how this package can be tested.
 ────────────────────────────────────────
 
-This package can be tested by loading it into R with the command
-‘library(haplo.stats)’ 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.

Modified: trunk/packages/R/r-cran-haplo.stats/trunk/debian/changelog
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/changelog	2014-06-19 09:06:09 UTC (rev 17222)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/changelog	2014-06-19 12:07:37 UTC (rev 17223)
@@ -1,3 +1,12 @@
+r-cran-haplo.stats (1.6.8-1) UNRELEASED; urgency=medium
+
+  * New upstream version
+  * Moved debian/upstream to debian/upstream/metadata
+  * cme fix dpkg-control
+  * Add autopkgtest
+
+ -- Andreas Tille <tille at debian.org>  Thu, 19 Jun 2014 09:50:16 +0200
+
 r-cran-haplo.stats (1.6.3-1) unstable; urgency=low
 
   * Team upload.

Modified: trunk/packages/R/r-cran-haplo.stats/trunk/debian/control
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/control	2014-06-19 09:06:09 UTC (rev 17222)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/control	2014-06-19 12:07:37 UTC (rev 17223)
@@ -4,10 +4,11 @@
            Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev (>= 2.15)
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-haplo.stats/trunk
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-haplo.stats/trunk/ 
 Homepage: http://cran.r-project.org/web/packages/haplo.stats
@@ -23,4 +24,3 @@
  assume that all subjects are unrelated and that haplotypes are ambiguous
  (due to unknown linkage phase of the genetic markers). The main functions
  are: haplo.em, haplo.glm, haplo.score, haplo.power, and seqhap.
-

Added: trunk/packages/R/r-cran-haplo.stats/trunk/debian/docs
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/docs	                        (rev 0)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/docs	2014-06-19 12:07:37 UTC (rev 17223)
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests

Modified: trunk/packages/R/r-cran-haplo.stats/trunk/debian/lintian-overrides
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/lintian-overrides	2014-06-19 09:06:09 UTC (rev 17222)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/lintian-overrides	2014-06-19 12:07:37 UTC (rev 17223)
@@ -1 +1 @@
-r-cran-haplo.stats: extra-license-file usr/lib/R/site-library/haplo.stats/LICENSE
+r-cran-haplo.stats: extra-license-file usr/lib/R/site-library/haplo.stats/LICENSE.note

Added: trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/control
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/control	2014-06-19 12:07:37 UTC (rev 17223)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-runit
+Restrictions: allow-stderr

Added: trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/run-unit-test	                        (rev 0)
+++ trunk/packages/R/r-cran-haplo.stats/trunk/debian/tests/run-unit-test	2014-06-19 12:07:37 UTC (rev 17223)
@@ -0,0 +1,39 @@
+#!/bin/sh -e
+
+pkg=r-cran-haplo.stats
+
+# The saved result files do contain some differences in metadata and we also
+# need to ignore version differences of R
+filter() {
+    grep -v -e '^R version' \
+        -e '^Copyright (C)' \
+        -e '^Platform:' \
+        -e '^ISBN 3-900051-07-0' \
+        -e '^\[1\] "L*C' \
+        -e '^During startup - Warning messages:' \
+        -e '^[0-9]: Setting LC_' \
+       $1 | \
+    sed '/^> *proc\.time()$/,$d'
+}
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip *.gz
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+   LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+   filter ${htest}.Rout.save > ${htest}.Rout.save_
+   filter ${htest}.Rout > ${htest}.Rout_
+   diff -u ${htest}.Rout.save_ ${htest}.Rout_
+   if [ ! $? ] ; then
+     echo "Test ${htest} failed"
+     exit 1
+   else
+     echo "Test ${htest} passed"
+   fi
+done
+rm -f $ADTTMP/*
+
+exit 0




More information about the debian-med-commit mailing list