[med-svn] [r-cran-r.oo] 03/10: Add autopkgtest
Andreas Tille
tille at debian.org
Wed Nov 29 18:51:38 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-r.oo.
commit 6d7126855991fb2379ec1d5099dc4a27a3d50781
Author: Andreas Tille <tille at debian.org>
Date: Sat Jul 18 06:02:45 2015 +0000
Add autopkgtest
---
debian/README.test | 8 ++++++++
debian/changelog | 6 ++++++
debian/docs | 3 +++
debian/tests/control | 3 +++
debian/tests/run-unit-test | 22 ++++++++++++++++++++++
5 files changed, 42 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 69b2b7e..f19c227 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+r-cran-r.oo (1.19.0-2) unstable; urgency=medium
+
+ * Add autopkgtest
+
+ -- Andreas Tille <tille at debian.org> Sat, 18 Jul 2015 07:59:12 +0200
+
r-cran-r.oo (1.19.0-1) unstable; urgency=medium
* Initial upload (Closes: #791483
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..3adf0d6
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+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..d2aa55a
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..56d767b
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+pkg=r-cran-r.oo
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for htest in `ls *.R | sed 's/\.R$//'` ; do
+ LC_ALL=C R --no-save < ${htest}.R 2>&1 | tee > ${htest}.Rout
+ if [ ! $? ] ; then
+ echo "Test ${htest} failed"
+ exit 1
+ else
+ echo "Test ${htest} passed"
+ fi
+done
+rm -f $ADTTMP/*
+
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-r.oo.git
More information about the debian-med-commit
mailing list