[med-svn] [r-cran-reshape2] 04/04: Add autopkgtest

Andreas Tille tille at debian.org
Fri Jun 20 14:50:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-reshape2.

commit ca5e7008d76dd5a3a3849797018581f27a03de71
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jun 20 16:50:44 2014 +0200

    Add autopkgtest
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  1 +
 debian/control             |  1 +
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 11 +++++++++++
 6 files changed, 27 insertions(+)

diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55a9142
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+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 6c62886..466bbc5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ r-cran-reshape2 (1.4-1) UNRELEASED; urgency=medium
      - debhelper 9
      - new Build-Depends: r-cran-rcpp
      - versioned Build-Depends: r-cran-plyr (>= 1.8.1)
+  * add autopkgtest
 
  -- Andreas Tille <tille at debian.org>  Fri, 20 Jun 2014 16:17:18 +0200
 
diff --git a/debian/control b/debian/control
index 5bfd04e..bf3a5c5 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Uploaders: Carlos Borroto <carlos.borroto at gmail.com>,
            Andreas Tille <tille at debian.org>
 Section: gnu-r
 Priority: optional
+Testsuite: autopkgtest
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev,
diff --git a/debian/docs b/debian/docs
index edc0071..ca65253 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,4 @@
 NEWS
+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..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..117f341
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-reshape2
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+gzip -R *
+R --no-save < testthat.R
+rm -f $ADTTMP/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-reshape2.git



More information about the debian-med-commit mailing list