[med-svn] [r-cran-fitcoach] 01/01: Add autopkgtest
Dylan Aïssi
bob.dybian-guest at moszumanska.debian.org
Tue Nov 15 22:07:45 UTC 2016
This is an automated email from the git hooks/post-receive script.
bob.dybian-guest pushed a commit to branch master
in repository r-cran-fitcoach.
commit 0e08514d80a7e2134247657c8fb5a2f5f989acec
Author: Dylan Aïssi <bob.dybian at gmail.com>
Date: Tue Nov 15 22:33:05 2016 +0100
Add autopkgtest
---
debian/docs | 1 +
debian/tests/control | 3 +++
debian/tests/run-unit-test | 11 +++++++++++
3 files changed, 15 insertions(+)
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..2b29f27
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+tests
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..8a43ff9
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+pkg=r-cran-fitcoach
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+
+R --no-save < testthat.R
+rm -rf $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/r-cran-fitcoach.git
More information about the debian-med-commit
mailing list