[med-svn] [pbsuite] 01/01: Enable running test script also from command line

Andreas Tille tille at debian.org
Sat Dec 24 11:44:54 UTC 2016


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

tille pushed a commit to branch master
in repository pbsuite.

commit 38252faeb65ef853ef1ca170ce300dd3c4921752
Author: Andreas Tille <tille at debian.org>
Date:   Sat Dec 24 12:36:38 2016 +0100

    Enable running test script also from command line
---
 debian/changelog     | 5 +++--
 debian/tests/pbhoney | 9 ++++++++-
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index be3d15b..f54c2f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,13 @@
-pbsuite (15.8.24+dfsg-2) UNRELEASED; urgency=medium
+pbsuite (15.8.24+dfsg-2) unstable; urgency=medium
 
   * Team upload.
   * Adapt to change of command line syntax of blasr
     Closes: #844034
   * cme fix dpkg-control
   * debhelper 10
+  * Enable running test script also from command line
 
- -- Andreas Tille <tille at debian.org>  Sat, 24 Dec 2016 12:20:46 +0100
+ -- Andreas Tille <tille at debian.org>  Sat, 24 Dec 2016 12:27:57 +0100
 
 pbsuite (15.8.24+dfsg-1) unstable; urgency=medium
 
diff --git a/debian/tests/pbhoney b/debian/tests/pbhoney
index 4a72f91..175d529 100755
--- a/debian/tests/pbhoney
+++ b/debian/tests/pbhoney
@@ -4,10 +4,17 @@ set -e
 # This does not test the accuracy of the code.
 # It's just a check of whether it will actually run successfully
 
-cp -r /usr/share/doc/pbhoney/examples/* $ADTTMP
+pkg="pbhoney"
+
+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}/examples/* .
+
 gunzip *.gz
 
 ./workflow.sh

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



More information about the debian-med-commit mailing list