[med-svn] [r-cran-munsell] 01/01: Add autopkgtest
Andreas Tille
tille at debian.org
Mon Oct 17 11:37:47 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-munsell.
commit 32229b1333980bc1148132b4fedecaa6d1e0ca6c
Author: Andreas Tille <tille at debian.org>
Date: Mon Oct 17 13:31:30 2016 +0200
Add autopkgtest
---
debian/README.test | 9 +++++++++
debian/changelog | 8 ++++----
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 11 +++++++++++
5 files changed, 30 insertions(+), 4 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 92f42c7..9751ff8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,4 @@
-r-cran-munsell (0.4.3-1) UNRELEASED; urgency=medium
-
- [ Andreas Tille ]
- * Imported Upstream version 0.4.2
+r-cran-munsell (0.4.3-1) unstable; urgency=medium
[ Benjamin Eikel ]
* New upstream version 0.4.3
@@ -14,6 +11,9 @@ r-cran-munsell (0.4.3-1) UNRELEASED; urgency=medium
* d/docs: NEWS was renamed to NEWS.md
* d/docs: Add new file README.md
+ [ Andreas Tille ]
+ * Add autopkgtest
+
-- Benjamin Eikel <debian at eikel.org> Sun, 16 Oct 2016 14:18:40 +0200
r-cran-munsell (0.4.2-1) unstable; urgency=low
diff --git a/debian/docs b/debian/docs
index da4bc20..f8fca4b 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,2 +1,5 @@
NEWS.md
README.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..d9c3439
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-munsell
+
+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-munsell.git
More information about the debian-med-commit
mailing list