This is an automated email from the git hooks/post-receive script. tille pushed a commit to branch master in repository r-cran-vegan.
commit 23223f6be7ab3bedba7ee37776abb431b30f224f Author: Andreas Tille <[email protected]> Date: Tue Nov 10 21:17:13 2015 +0100 add autopkgtest based on vignettes --- debian/README.test | 8 ++++++++ debian/changelog | 1 + debian/docs | 2 ++ debian/examples | 1 + debian/tests/control | 3 +++ debian/tests/run-unit-test | 18 ++++++++++++++++++ 6 files changed, 33 insertions(+) diff --git a/debian/README.test b/debian/README.test new file mode 100644 index 0000000..ef34ccc --- /dev/null +++ b/debian/README.test @@ -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. diff --git a/debian/changelog b/debian/changelog index 13471fc..98a1e78 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ r-cran-vegan (2.3-1-1) UNRELEASED; urgency=medium * New upstream version + * add autopkgtest based on vignettes -- Andreas Tille <[email protected]> Tue, 10 Nov 2015 21:09:20 +0100 diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..9a4f4f8 --- /dev/null +++ b/debian/docs @@ -0,0 +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..04a9f85 --- /dev/null +++ b/debian/tests/run-unit-test @@ -0,0 +1,18 @@ +#!/bin/sh -e +oname=vegan +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 * -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-vegan.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
