[med-svn] [r-bioc-dnacopy] 02/03: Add autopkgtest

Andreas Tille tille at debian.org
Sun Jun 26 06:12:49 UTC 2016


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

tille pushed a commit to branch master
in repository r-bioc-dnacopy.

commit 991785b2a43740f72f80ad8558f3221e64269811
Author: Andreas Tille <tille at debian.org>
Date:   Sun Jun 26 07:38:57 2016 +0200

    Add autopkgtest
---
 debian/README.test         |  8 ++++++++
 debian/changelog           |  2 +-
 debian/docs                |  3 +++
 debian/tests/control       |  3 +++
 debian/tests/run-unit-test | 16 ++++++++++++++++
 5 files changed, 31 insertions(+), 1 deletion(-)

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 e6606e8..32cf412 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-r-bioc-dnacopy (1.46.0-1) unstable; urgency=medium
+r-bioc-dnacopy (1.46.0-1) UNRELEASED; urgency=medium
 
   * Initial release. (Closes: #828189)
 
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..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..e490d89
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,16 @@
+#!/bin/sh -e
+
+pkg=r-bioc-dnacopy
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+export LC_ALL=C
+for test in *R
+do
+  R CMD BATCH ${test}
+  echo "Test ${test} passed"
+done
+rm -f $ADTTMP/*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-bioc-dnacopy.git



More information about the debian-med-commit mailing list