[med-svn] [r-cran-rncl] 02/10: Add autopkgtest and upload to unstable (new)
Andreas Tille
tille at debian.org
Wed Nov 29 19:40:28 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-rncl.
commit 33cc1e4b5f4a2e56c7204a51e8f598fa86407836
Author: Andreas Tille <tille at debian.org>
Date: Tue Mar 22 13:39:15 2016 +0000
Add autopkgtest and upload to unstable (new)
---
debian/README.test | 9 +++++++++
debian/changelog | 6 +++---
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 12 ++++++++++++
5 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..4fe93f7
--- /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 < test-all.R
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index 541c51a..5f497cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-r-cran-rncl (0.6.0-1) UNRELEASED; urgency=low
+r-cran-rncl (0.6.0-1) unstable; urgency=low
- * Initial release (Closes: #<bug>)
+ * Initial release (Closes: #818976)
- -- Andreas Tille <tille at debian.org> Tue, 22 Mar 2016 12:05:59 +0100
+ -- Andreas Tille <tille at debian.org> Tue, 22 Mar 2016 14:29:52 +0100
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..c5256ac
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+oname=rncl
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+LC_ALL=C R --no-save < test-all.R
+rm -fr $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-rncl.git
More information about the debian-med-commit
mailing list