[r-cran-yaml] 01/02: Add autopkgtest. Important note: The unit test fails but this is probably a failure in the upstream test suite and not in the package itself. This will be investigated later.
Andreas Tille
tille at debian.org
Sat Sep 10 13:54:16 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-yaml.
commit 01dcbae4605f758115c6d3595395a701bbe77fbf
Author: Andreas Tille <tille at debian.org>
Date: Sat Sep 10 15:49:50 2016 +0200
Add autopkgtest. Important note: The unit test fails but this is probably a failure in the upstream test suite and not in the package itself. This will be investigated later.
---
debian/README.test | 9 +++++++++
debian/changelog | 1 +
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 12 ++++++++++++
5 files changed, 28 insertions(+)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..3574a58
--- /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 < run-all.R
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index d2ccd0a..f95bb40 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ r-cran-yaml (2.1.13-5) UNRELEASED; urgency=medium
* cme fix dpkg-control
* do not pin to specific libyaml-dev version
Closes: #837246
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Sat, 10 Sep 2016 15:34:29 +0200
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..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..17b3f0a
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+oname=yaml
+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
+LC_ALL=C R --no-save < run-all.R
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-yaml.git
More information about the debian-science-commits
mailing list