r46867 - in /packages/R/r-cran-learnbayes/trunk/debian: README.test changelog control docs examples tests/ tests/control tests/run-unit-test

tille at users.alioth.debian.org tille at users.alioth.debian.org
Thu Aug 14 09:37:48 UTC 2014


Author: tille
Date: Thu Aug 14 09:37:48 2014
New Revision: 46867

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=46867
Log:
Add autopkgtest based on vignettes

Added:
    packages/R/r-cran-learnbayes/trunk/debian/README.test
    packages/R/r-cran-learnbayes/trunk/debian/docs
    packages/R/r-cran-learnbayes/trunk/debian/examples
    packages/R/r-cran-learnbayes/trunk/debian/tests/
    packages/R/r-cran-learnbayes/trunk/debian/tests/control
    packages/R/r-cran-learnbayes/trunk/debian/tests/run-unit-test
Modified:
    packages/R/r-cran-learnbayes/trunk/debian/changelog
    packages/R/r-cran-learnbayes/trunk/debian/control

Added: packages/R/r-cran-learnbayes/trunk/debian/README.test
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/README.test?rev=46867&op=file
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/README.test	(added)
+++ packages/R/r-cran-learnbayes/trunk/debian/README.test	Thu Aug 14 09:37:48 2014
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+   sh  run-unit-test
+
+in this directory.

Modified: packages/R/r-cran-learnbayes/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/changelog?rev=46867&op=diff
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/changelog	(original)
+++ packages/R/r-cran-learnbayes/trunk/debian/changelog	Thu Aug 14 09:37:48 2014
@@ -1,6 +1,7 @@
-r-cran-learnbayes (2.15-2) UNRELEASED; urgency=medium
+r-cran-learnbayes (2.15-2) unstable; urgency=medium
 
   * Fix Vcs fields
+  * Add autopkgtest based on vignettes
 
  -- Andreas Tille <tille at debian.org>  Thu, 14 Aug 2014 11:27:59 +0200
 

Modified: packages/R/r-cran-learnbayes/trunk/debian/control
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/control?rev=46867&op=diff
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/control	(original)
+++ packages/R/r-cran-learnbayes/trunk/debian/control	Thu Aug 14 09:37:48 2014
@@ -1,6 +1,7 @@
 Source: r-cran-learnbayes
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Build-Depends: debhelper (>= 9.0),

Added: packages/R/r-cran-learnbayes/trunk/debian/docs
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/docs?rev=46867&op=file
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/docs	(added)
+++ packages/R/r-cran-learnbayes/trunk/debian/docs	Thu Aug 14 09:37:48 2014
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test

Added: packages/R/r-cran-learnbayes/trunk/debian/examples
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/examples?rev=46867&op=file
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/examples	(added)
+++ packages/R/r-cran-learnbayes/trunk/debian/examples	Thu Aug 14 09:37:48 2014
@@ -0,0 +1 @@
+vignettes

Added: packages/R/r-cran-learnbayes/trunk/debian/tests/control
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/tests/control?rev=46867&op=file
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/tests/control	(added)
+++ packages/R/r-cran-learnbayes/trunk/debian/tests/control	Thu Aug 14 09:37:48 2014
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr

Added: packages/R/r-cran-learnbayes/trunk/debian/tests/run-unit-test
URL: http://svn.debian.org/wsvn/debian-science/packages/R/r-cran-learnbayes/trunk/debian/tests/run-unit-test?rev=46867&op=file
==============================================================================
--- packages/R/r-cran-learnbayes/trunk/debian/tests/run-unit-test	(added)
+++ packages/R/r-cran-learnbayes/trunk/debian/tests/run-unit-test	Thu Aug 14 09:37:48 2014
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+oname=LearnBayes
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+gunzip *.gz
+for rnw in `ls *.[rR]nw` ; do
+rfile=`echo $rnw | sed 's/\.[rR]nw/.R/'`
+R --no-save <<EOT
+  Stangle("$rnw")
+  source("$rfile", echo=TRUE)
+EOT
+done
+rm -rf *




More information about the debian-science-commits mailing list