[med-svn] [r-cran-rsqlite] 06/11: Unified test script

Andreas Tille tille at debian.org
Wed Nov 30 14:05:12 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-rsqlite.

commit bed50537d2ad384d95f752873bf7b028228cda09
Author: Andreas Tille <tille at debian.org>
Date:   Wed Nov 30 14:44:01 2016 +0100

    Unified test script
---
 debian/tests/run-unit-test | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
index 17b808b..dffb590 100644
--- a/debian/tests/run-unit-test
+++ b/debian/tests/run-unit-test
@@ -1,11 +1,13 @@
 #!/bin/sh -e
 
-pkg=r-cran-rsqlite
+oname=RSQLite
+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 -a /usr/share/doc/${pkg}/tests/* $ADTTMP
-gunzip -r *
+find . -name "*.gz" -exec gunzip \{\} \;
 LC_ALL=C R --no-save < testthat.R
-rm -fr $ADTTMP/*

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



More information about the debian-med-commit mailing list