[med-svn] [r-cran-optparse] 06/10: New upstream version, add autopkgtest
Andreas Tille
tille at debian.org
Fri Sep 29 20:12:04 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-optparse.
commit c7117915200922d0158840e0e13628c0337767ab
Author: Andreas Tille <tille at debian.org>
Date: Sat Jun 28 06:13:50 2014 +0000
New upstream version, add autopkgtest
---
debian/changelog | 3 ++-
debian/control | 1 +
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 11 +++++++++++
5 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 3d96a78..5e97efa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
-r-cran-optparse (1.2-1) UNRELEASED; urgency=medium
+r-cran-optparse (1.2.0-1) unstable; urgency=medium
* New upstream version
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Sat, 21 Jun 2014 00:31:36 +0200
diff --git a/debian/control b/debian/control
index 0f7d56c..9d6fe0e 100644
--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
Uploaders: 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
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..493eea5
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-optparse
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+gunzip -r *
+LC_ALL=C R --no-save < run-all.R
+rm -fr $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-optparse.git
More information about the debian-med-commit
mailing list