[r-cran-msm] 20/31: New Build-Depends: r-cran-expm (ITP filed); Add autopkgtest
Sébastien Villemot
sebastien at debian.org
Thu Nov 16 16:17:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastien pushed a commit to branch master
in repository r-cran-msm.
commit cb27a3af085679db028bc9914880bc71ab9c89d4
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
---
debian/README.test | 9 ++++++---
debian/changelog | 2 ++
debian/control | 3 +++
debian/docs | 2 ++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 11 +++++++++++
6 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/debian/README.test b/debian/README.test
index 9d0d79f..88a2b9a 100644
--- a/debian/README.test
+++ b/debian/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/debian/changelog b/debian/changelog
index d7881db..b9fa04e 100644
--- a/debian/changelog
+++ b/debian/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/debian/control b/debian/control
index dcf8113..51e94c9 100644
--- a/debian/control
+++ b/debian/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/debian/docs b/debian/docs
index 50f6656..6bab7d7 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,3 @@
debian/README.test
+tests
+debian/tests/run-unit-test
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..dff3542
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, @builddeps@, r-cran-runit
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..0a94ada
--- /dev/null
+++ b/debian/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