[r-cran-msm] 04/06: New Build-Depends: r-cran-expm (ITP filed); Add autopkgtest

Sébastien Villemot sebastien at debian.org
Thu Nov 16 16:17:19 UTC 2017


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

sebastien pushed a commit to annotated tag debian/1.3-1
in repository r-cran-msm.

commit b0283574fb6af9b0013472034ae2a4b90514925a
Author: Andreas Tille <tille at debian.org>
Date:   Wed May 21 12:12:17 2014 +0000

    New Build-Depends: r-cran-expm (ITP filed); Add autopkgtest
---
 README.test         |  9 ++++++---
 changelog           |  2 ++
 control             |  3 +++
 docs                |  2 ++
 tests/control       |  3 +++
 tests/run-unit-test | 11 +++++++++++
 6 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/README.test b/README.test
index 9d0d79f..88a2b9a 100644
--- a/README.test
+++ b/README.test
@@ -1,7 +1,10 @@
 R msm for Debian
 ----------------
 
-This package can be tested by loading it into R with the command
-‘library(msm)’ in order to confirm its integrity.
+This package can be tested running the unit test suite via
 
- -- Andreas Tille <tille at debian.org>  Fri, 16 Jan 2009 20:43:13 +0100
+   sh run-unit-test
+
+in this directory
+
+ -- Andreas Tille <tille at debian.org>  Wed, 21 May 2014 13:01:34 +0200
diff --git a/changelog b/changelog
index d7881db..b9fa04e 100644
--- a/changelog
+++ b/changelog
@@ -5,6 +5,8 @@ r-cran-msm (1.3-1) UNRELEASED; urgency=medium
   * debian/control:
      - cme fix dpkg-control
      - debhelper 9
+     - Build-Depends: r-cran-expm
+  * Add autopkgtest
 
  -- Andreas Tille <tille at debian.org>  Wed, 21 May 2014 13:01:34 +0200
 
diff --git a/control b/control
index dcf8113..51e94c9 100644
--- a/control
+++ b/control
@@ -2,10 +2,12 @@ Source: r-cran-msm
 Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
 Uploaders: Andreas Tille <tille at debian.org>
 Section: gnu-r
+XS-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
                cdbs,
                r-base-dev (>= 3.0.0),
+               r-cran-expm,
                r-cran-mvtnorm,
                r-cran-survival
 Standards-Version: 3.9.5
@@ -17,6 +19,7 @@ Package: r-cran-msm
 Architecture: any
 Depends: ${shlibs:Depends},
          ${R:Depends},
+         r-cran-expm,
          r-cran-mvtnorm,
          r-cran-survival
 Description: GNU R Multi-state Markov and hidden Markov models in continuous time
diff --git a/docs b/docs
index 50f6656..6bab7d7 100644
--- a/docs
+++ b/docs
@@ -1 +1,3 @@
 debian/README.test
+tests
+debian/tests/run-unit-test
\ No newline at end of file
diff --git a/tests/control b/tests/control
new file mode 100644
index 0000000..dff3542
--- /dev/null
+++ b/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, @builddeps@, r-cran-runit
+Restrictions: allow-stderr
diff --git a/tests/run-unit-test b/tests/run-unit-test
new file mode 100644
index 0000000..0a94ada
--- /dev/null
+++ b/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/r-cran-msm-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/r-cran-msm/tests/* $ADTTMP
+gunzip *.gz
+for testx in `ls *.R` ; do
+    R --no-save < $testx
+done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-msm.git



More information about the debian-science-commits mailing list