[med-svn] [bedtools] 01/01: Use content from bedtools-test package to actually run the test suite

Andreas Tille tille at debian.org
Fri May 9 07:55:11 UTC 2014


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

tille pushed a commit to branch debian/unstable
in repository bedtools.

commit 5b91abfc7b1c307962720340598d05f596cfc325
Author: Andreas Tille <tille at debian.org>
Date:   Fri May 9 09:54:57 2014 +0200

    Use content from bedtools-test package to actually run the test suite
---
 debian/changelog      |  3 +++
 debian/tests/upstream | 11 ++++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7acfc55..f1fca9f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,9 @@ bedtools (2.19.1-2) UNRELEASED; urgency=medium
 
   * debian/tests/control: Add "Depends: @, samtools" as advised in
     #747337
+  * debian/tests/upstream: Use content from bedtools-test package to
+    actually run the test suite
+    Closes: #747337
 
  -- Andreas Tille <tille at debian.org>  Fri, 09 May 2014 09:48:05 +0200
 
diff --git a/debian/tests/upstream b/debian/tests/upstream
index 0820d56..5f68676 100755
--- a/debian/tests/upstream
+++ b/debian/tests/upstream
@@ -1,13 +1,14 @@
 #!/bin/sh -e
 
-# Create a temporary directory
-TMPTESTDIR=$(mktemp -d)
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/bedtools-test.XXXXXX`
+fi
 
 # Copy test suite there
-cp -a test $TMPTESTDIR
+cp -a /usr/share/bedtools/test $ADTTMP
 
 # Enter the directory and run the tests
-cd $TMPTESTDIR/test
+cd $ADTTMP/test
 DATA=/usr/share/bedtools/data BT=/usr/bin/bedtools sh test.sh | tee test.sh.output
 
 # Did it fail ?
@@ -16,6 +17,6 @@ grep -q fail test.sh.output && TESTFAILED=1
 
 # Clean
 cd
-rm -rf $TMPTESTDIR/test
+rm -rf $ADTTMP/test
 
 exit $TESTFAILED

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



More information about the debian-med-commit mailing list