[med-svn] [r-cran-gtable] 09/14: Added autopkgtest
Andreas Tille
tille at debian.org
Fri Sep 29 07:22:59 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-gtable.
commit 9e37346abfe3ad25c5aa3431e89081118f534c68
Author: Andreas Tille <tille at debian.org>
Date: Tue Oct 18 10:51:25 2016 +0000
Added autopkgtest
---
debian/README.test | 9 +++++++++
debian/changelog | 6 ++++--
debian/docs | 5 ++++-
debian/tests/control | 3 +++
debian/tests/run-unit-test | 11 +++++++++++
5 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..8d70ca3
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+cd tests
+LC_ALL=C R --no-save < testthat.R
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index 2e103cd..369f055 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,11 @@
-gtable (0.1.2-2) UNRELEASED; urgency=medium
+gtable (0.2.0-1) UNRELEASED; urgency=medium
+ * New upstream version
* Ivo Maintz is MIA, take over package into team maintenance
* cme fix dpkg-control
+ * add autopkgtest
- -- Andreas Tille <tille at debian.org> Tue, 11 Oct 2016 17:21:30 +0200
+ -- Andreas Tille <tille at debian.org> Tue, 18 Oct 2016 12:45:51 +0200
gtable (0.1.2-1.1) unstable; urgency=low
diff --git a/debian/docs b/debian/docs
index edc0071..af15354 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,4 @@
-NEWS
+NEWS.md
+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..568b640
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-gtable
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+ trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+LC_ALL=C R --no-save < testthat.R
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-gtable.git
More information about the debian-med-commit
mailing list