[r-cran-lubridate] 10/10: Add autopkgtest

Andreas Tille tille at debian.org
Mon Dec 5 16:31:02 UTC 2016


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

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

commit 688942022e1b231f89d2b5d37201081a0f3f53af
Author: Andreas Tille <tille at debian.org>
Date:   Mon Dec 5 17:25:52 2016 +0100

    Add autopkgtest
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  5 +++--
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 13 +++++++++++++
 5 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..d409f9a
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+     sh run-unit-test
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index 0bb6519..9f0593c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-r-cran-lubridate (1.6.0-1) UNRELEASED; urgency=medium
+r-cran-lubridate (1.6.0-1) unstable; urgency=medium
 
   * Team upload.
   * New upstream version
@@ -8,8 +8,9 @@ r-cran-lubridate (1.6.0-1) UNRELEASED; urgency=medium
   * DEP5
   * debhelper 10
   * d/watch: version=4
+  * Add autopkgtest
 
- -- Andreas Tille <tille at debian.org>  Mon, 05 Dec 2016 17:12:29 +0100
+ -- Andreas Tille <tille at debian.org>  Mon, 05 Dec 2016 17:21:22 +0100
 
 r-cran-lubridate (1.5.0-2) unstable; urgency=medium
 
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..960011c
--- /dev/null
+++ b/debian/docs
@@ -0,0 +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..4e50638
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat, r-cran-dplyr, r-cran-data.table
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..931d31d
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=lubridate
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+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
+find . -name "*.gz" -exec gunzip \{\} \;
+LC_ALL=C R --no-save < testthat.R

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-lubridate.git



More information about the debian-science-commits mailing list