[med-svn] [bedtools] 10/13: Create autopkgtest testsuite and a new package bedtools-test.
Charles Plessy
plessy at moszumanska.debian.org
Fri Mar 21 07:23:47 UTC 2014
This is an automated email from the git hooks/post-receive script.
plessy pushed a commit to branch debian/unstable
in repository bedtools.
commit 93a7cf114ba72dd8fee1fbcf04786672e683ce14
Author: Charles Plessy <plessy at debian.org>
Date: Fri Mar 21 13:23:27 2014 +0900
Create autopkgtest testsuite and a new package bedtools-test.
---
debian/bedtools-test.install | 3 +++
debian/{docs => bedtools.docs} | 0
debian/{install => bedtools.install} | 1 -
debian/control | 11 +++++++++++
debian/tests/control | 1 +
debian/tests/upstream | 21 +++++++++++++++++++++
6 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/debian/bedtools-test.install b/debian/bedtools-test.install
new file mode 100644
index 0000000..bdf4e75
--- /dev/null
+++ b/debian/bedtools-test.install
@@ -0,0 +1,3 @@
+test/* usr/share/bedtools/test
+data/* usr/share/bedtools/data
+
diff --git a/debian/docs b/debian/bedtools.docs
similarity index 100%
rename from debian/docs
rename to debian/bedtools.docs
diff --git a/debian/install b/debian/bedtools.install
similarity index 73%
rename from debian/install
rename to debian/bedtools.install
index d96949f..063e263 100644
--- a/debian/install
+++ b/debian/bedtools.install
@@ -1,4 +1,3 @@
bin/* usr/bin
genomes usr/share/bedtools
-test/* usr/share/bedtools/test
debian/bash_completion/* etc/bash_completion.d
diff --git a/debian/control b/debian/control
index 4ab7313..1686a59 100644
--- a/debian/control
+++ b/debian/control
@@ -12,6 +12,7 @@ Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-med/bedtools.git
Vcs-Git: git://anonscm.debian.org/debian-med/bedtools.git
Homepage: http://code.google.com/p/bedtools/
+Testsuite: autopkgtest
Package: bedtools
Architecture: any
@@ -27,3 +28,13 @@ Description: suite of utilities for comparing genomic features
.
The groupBy utility is distributed in the filo package.
+Package: bedtools-test
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: bedtools (<< 2.19.1-1)
+Replaces: bedtools (<< 2.19.1-1)
+Suggests: bedtools
+Description: test data for the bedtools package
+ Test data for the BEDTools suite of utilities for comparing genomic features.
+ It is distributed in a separate package because it is large and
+ architecture-independent.
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..f08221c
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: upstream
diff --git a/debian/tests/upstream b/debian/tests/upstream
new file mode 100755
index 0000000..0820d56
--- /dev/null
+++ b/debian/tests/upstream
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# Create a temporary directory
+TMPTESTDIR=$(mktemp -d)
+
+# Copy test suite there
+cp -a test $TMPTESTDIR
+
+# Enter the directory and run the tests
+cd $TMPTESTDIR/test
+DATA=/usr/share/bedtools/data BT=/usr/bin/bedtools sh test.sh | tee test.sh.output
+
+# Did it fail ?
+TESTFAILED=0
+grep -q fail test.sh.output && TESTFAILED=1
+
+# Clean
+cd
+rm -rf $TMPTESTDIR/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