[med-svn] [r-cran-hwriter] 03/06: Upload new version including autopkgtest based on vignettes

Andreas Tille tille at debian.org
Fri Oct 20 05:23:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-hwriter.

commit 965ceeee43d0b955410d623bfcec8caba0c8bdb0
Author: Andreas Tille <tille at debian.org>
Date:   Mon Sep 22 19:52:36 2014 +0000

    Upload new version including autopkgtest based on vignettes
---
 debian/README.test         |  7 +++++--
 debian/changelog           |  8 ++++++++
 debian/control             |  2 +-
 debian/docs                |  1 +
 debian/examples            |  1 +
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 18 ++++++++++++++++++
 7 files changed, 37 insertions(+), 3 deletions(-)

diff --git a/debian/README.test b/debian/README.test
index 4dac0e0..55a9142 100644
--- a/debian/README.test
+++ b/debian/README.test
@@ -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(hwriter)’ 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.
diff --git a/debian/changelog b/debian/changelog
index 3d1a7b1..d450031 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+r-cran-hwriter (1.3.2-1) unstable; urgency=medium
+
+  * New upstream version
+  * autopkgtest based on vignetes
+  * cme fix dpkg-control
+
+ -- Andreas Tille <tille at debian.org>  Mon, 22 Sep 2014 21:41:06 +0200
+
 r-cran-hwriter (1.3-1) unstable; urgency=low
 
   * Initial release (closes: #728740)
diff --git a/debian/control b/debian/control
index dff12f2..f41028a 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Priority: optional
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev
-Standards-Version: 3.9.4
+Standards-Version: 3.9.6
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/R/r-cran-hwriter/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/R/r-cran-hwriter/trunk/
 Homepage: http://cran.r-project.org/web/packages/hwriter
diff --git a/debian/docs b/debian/docs
index 50f6656..9a4f4f8 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,2 @@
 debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..18244c8
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+vignettes
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..d20ba13
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+oname=hwriter
+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
+find . -name "*.gz" -exec gunzip \{\} \;
+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 *

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-hwriter.git



More information about the debian-med-commit mailing list