[med-svn] [r-cran-rsqlite] 01/02: Add autopkgtest
Andreas Tille
tille at debian.org
Sat Jun 21 06:30:01 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-rsqlite.
commit c8bb6b6c63b4f37e191e829a5d5664bd10df4811
Author: Andreas Tille <tille at debian.org>
Date: Sat Jun 21 08:23:09 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 | 19 +++++++++++++++++++
6 files changed, 35 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 6d07728..6a1f26d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ r-cran-rsqlite (0.11.4-1) UNRELEASED; urgency=medium
* New upstream version
* cme fix dpkg-control
+ * add autopkgtest
-- Andreas Tille <tille at debian.org> Sat, 21 Jun 2014 08:09:49 +0200
diff --git a/debian/control b/debian/control
index 93af501..3eb4c6c 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),
autotools-dev,
cdbs,
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..25377fc
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, 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..58c4cb1
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,19 @@
+#!/bin/sh -e
+
+pkg=r-cran-rsqlite
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+gunzip *.gz
+cp /usr/share/doc/${pkg}/tests/* $ADTTMP
+for runtest in `ls *.R` ; do
+ R --no-save < $runtest >/dev/null
+ if [ ! $? ] ; then
+ echo "Test ${htest} failed"
+ exit 1
+ else
+ echo "Test ${htest} passed"
+ fi
+done
+rm -f $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-rsqlite.git
More information about the debian-med-commit
mailing list