[med-svn] [r-cran-scatterd3] 07/09: Tried to test via vignette but failed

Andreas Tille tille at debian.org
Sat Jul 2 10:24:34 UTC 2016


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

tille pushed a commit to branch master
in repository r-cran-scatterd3.

commit 31940f9a75d30ac60b3717ac5df2fa55bf00cb33
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jul 2 12:16:06 2016 +0200

    Tried to test via vignette but failed
---
 debian/tests/run-unit-test | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100644
index 0000000..32a40eb
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+echo "Unfortunately this does not work"
+exit 1
+
+oname=scatterD3
+pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
+
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+  trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $ADTTMP
+cp /usr/share/doc/$pkg/examples/vignettes/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+for rnw in `ls *.[rRS][mn][dw]` ; do
+rfile=`echo $rnw | sed 's/\.[rRS]nw/.R/'`
+R --no-save <<EOT
+  Stangle("$rnw")
+  source("$rfile", echo=TRUE)
+EOT
+  echo "$rnw passed"
+done

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



More information about the debian-med-commit mailing list