[r-cran-rprotobuf] 01/01: fixes to tests
Jonathon Love
jon at thon.cc
Thu Apr 21 11:49:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
jonathon-guest pushed a commit to branch master
in repository r-cran-rprotobuf.
commit fbe8b954fa7e0a2c6a1468335548ec090497cc4a
Author: Jonathon Love <jon at thon.cc>
Date: Thu Apr 21 21:41:00 2016 +1000
fixes to tests
---
debian/docs | 3 +++
debian/tests/run-unit-test | 18 +-----------------
2 files changed, 4 insertions(+), 17 deletions(-)
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/run-unit-test b/debian/tests/run-unit-test
index f4d0cea..a63f969 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -1,20 +1,4 @@
#!/bin/sh -e
-pkg=r-cran-rprotobuf
+/usr/bin/Rscript /usr/share/doc/r-cran-rprotobuf/tests/runUnitTests.R
-if [ "$ADTTMP" = "" ] ; then
- ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
-fi
-cd $ADTTMP
-cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
-gunzip -r *.gz
-for runtest in `ls *.R` ; do
- LC_ALL=C R --no-save < $runtest >/dev/null
- if [ ! $? ] ; then
- echo "Test ${runtest} failed"
- exit 1
- else
- echo "Test ${runtest} passed"
- fi
-done
-rm -rf $ADTTMP/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-rprotobuf.git
More information about the debian-science-commits
mailing list