[med-svn] [permute] 05/06: Add autopkgtest
Andreas Tille
tille at debian.org
Tue Jul 1 17:42:46 UTC 2014
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository permute.
commit ca816a36a2e9c26cd25f0588b4f7afed65775813
Author: Andreas Tille <tille at debian.org>
Date: Tue Jul 1 17:55:11 2014 +0200
Add autopkgtest
---
debian/README.test | 8 ++++++++
debian/changelog | 1 +
debian/control | 1 +
debian/docs | 2 ++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 12 ++++++++++++
6 files changed, 27 insertions(+)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /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 982079a..b8121da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ permute (0.8-3-1) UNRELEASED; urgency=medium
* New upstream version
* Bump r-cran-vegan and r-cran-testthat from Suggests to Recommends
since both are available now
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Tue, 01 Jul 2014 17:40:02 +0200
diff --git a/debian/control b/debian/control
index 25b1f7f..3f64fb5 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
Uploaders: Andreas Tille <tille at debian.org>
Section: gnu-r
Priority: optional
+Testsuite: autopkgtest
Build-Depends: debhelper (>= 9),
cdbs,
r-base-dev
diff --git a/debian/docs b/debian/docs
index 2b29f27..960011c 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,3 @@
tests
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..b044b0c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..31c6323
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+pkg=r-cran-permute
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip -r *
+# LC_ALL=C R CMD BATCH test-all.R
+LC_ALL=C R --no-save < test-all.R
+rm -fr $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/permute.git
More information about the debian-med-commit
mailing list