[r-cran-rsdmx] 01/01: Add autopkgtest
Andreas Tille
tille at debian.org
Wed Jan 25 10:16:29 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-rsdmx.
commit 09400ab7860fbf8d3b5f4ccf7829748c22484c6a
Author: Andreas Tille <tille at debian.org>
Date: Wed Jan 25 11:15:58 2017 +0100
Add autopkgtest
---
debian/README.test | 9 +++++++++
debian/changelog | 7 +++++++
debian/docs | 3 +++
debian/tests/control | 5 +++++
debian/tests/run-unit-test | 17 +++++++++++++++++
5 files changed, 41 insertions(+)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..ab9ca74
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+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 1eed975..2a3c2f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+r-cran-rsdmx (0.5.7+dfsg-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Add autopkgtest
+
+ -- Andreas Tille <tille at debian.org> Wed, 25 Jan 2017 11:15:46 +0100
+
r-cran-rsdmx (0.5.7+dfsg-1) unstable; urgency=medium
* Team upload.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..3adf0d6
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+debian/README.test
+debian/tests/run-unit-test
+tests
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a62fb6e
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+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..0342c7b
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=rsdmx
+debname=r-cran-rsdmx
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
+ trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/$debname/tests/* $ADTTMP
+gunzip -r *
+for testfile in *.R; do
+ echo "BEGIN TEST $testfile"
+ LC_ALL=C R --no-save < $testfile
+done
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-rsdmx.git
More information about the debian-science-commits
mailing list