[med-svn] [r-cran-registry] 02/02: Added debian/tests.

Alba Crespi albac-guest at moszumanska.debian.org
Sat May 28 16:27:24 UTC 2016


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

albac-guest pushed a commit to branch master
in repository r-cran-registry.

commit 52c6859f096d5569b18597ca950c6f92305ea4d7
Author: Alba Crespi <crespialba+debian at gmail.com>
Date:   Sat May 28 18:24:19 2016 +0200

    Added debian/tests.
---
 debian/tests/control  |  3 +++
 debian/tests/registry | 13 +++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f91026f
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: registry
+Depends: @
+Restrictions: allow-stderr
diff --git a/debian/tests/registry b/debian/tests/registry
new file mode 100644
index 0000000..266c3cf
--- /dev/null
+++ b/debian/tests/registry
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+oname=registry
+pkg=r-cran-`echo $oname | tr [A-Z] [a-z]`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
+LC_ALL=C R --no-save < registry.R
+rm -fr $ADTTMP/*
+

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



More information about the debian-med-commit mailing list