[med-svn] [r-cran-phangorn] 01/02: Add autopkgtest
Andreas Tille
tille at debian.org
Fri Jul 8 08:38:12 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-phangorn.
commit 75fbbe098050a1763c4596d52cd905d4ca8dfe61
Author: Andreas Tille <tille at debian.org>
Date: Fri Jul 8 09:55:39 2016 +0200
Add autopkgtest
---
debian/README.test | 8 ++++++++
debian/changelog | 2 +-
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 13 +++++++++++++
5 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..39fbde9
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by executing
+
+ sh run-unit-test
+
+in order to confirm its integrity.
diff --git a/debian/changelog b/debian/changelog
index 268c001..305ee20 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,7 +6,7 @@ r-cran-phangorn (2.0.4-1) UNRELEASED; urgency=medium
* add (Build-)Depends: r-cran-fastmatch
* adjust versioned dependency from r-cran-igraph
- -- Andreas Tille <tille at debian.org> Tue, 08 Sep 2015 21:41:11 +0200
+ -- Andreas Tille <tille at debian.org> Fri, 08 Jul 2016 09:55:27 +0200
r-cran-phangorn (1.99.14-1) unstable; urgency=medium
diff --git a/debian/docs b/debian/docs
index 8913f46..71d6ec8 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,2 +1,5 @@
NEWS
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..03eebf7
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=phangorn
+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 . -type f -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-med/r-cran-phangorn.git
More information about the debian-med-commit
mailing list