[med-svn] r18251 - in trunk/packages/biosquid/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Thu Oct 9 14:30:38 UTC 2014
Author: tille
Date: 2014-10-09 14:30:37 +0000 (Thu, 09 Oct 2014)
New Revision: 18251
Added:
trunk/packages/biosquid/trunk/debian/biosquid-dev.examples
trunk/packages/biosquid/trunk/debian/tests/
trunk/packages/biosquid/trunk/debian/tests/control
trunk/packages/biosquid/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/biosquid/trunk/debian/changelog
trunk/packages/biosquid/trunk/debian/rules
Log:
Add autopkgtest
Added: trunk/packages/biosquid/trunk/debian/biosquid-dev.examples
===================================================================
--- trunk/packages/biosquid/trunk/debian/biosquid-dev.examples (rev 0)
+++ trunk/packages/biosquid/trunk/debian/biosquid-dev.examples 2014-10-09 14:30:37 UTC (rev 18251)
@@ -0,0 +1,2 @@
+Testsuite
+Formats
Modified: trunk/packages/biosquid/trunk/debian/changelog
===================================================================
--- trunk/packages/biosquid/trunk/debian/changelog 2014-10-09 13:38:54 UTC (rev 18250)
+++ trunk/packages/biosquid/trunk/debian/changelog 2014-10-09 14:30:37 UTC (rev 18251)
@@ -4,6 +4,7 @@
to artin Steghöfer <martin at steghoefer.eu>)
Closes: #716353
* cme fix dpkg-control
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Thu, 09 Oct 2014 15:35:25 +0200
Modified: trunk/packages/biosquid/trunk/debian/rules
===================================================================
--- trunk/packages/biosquid/trunk/debian/rules 2014-10-09 13:38:54 UTC (rev 18250)
+++ trunk/packages/biosquid/trunk/debian/rules 2014-10-09 14:30:37 UTC (rev 18251)
@@ -22,6 +22,10 @@
mv $(CURDIR)/debian/tmp/usr/bin/translate $(CURDIR)/debian/tmp/usr/bin/stranslate
dh_install
+override_dh_installexamples:
+ dh_installexamples
+ cd $(CURDIR)/debian/biosquid-dev/usr/share/doc/biosquid-dev/examples/Testsuite; make clean
+
override_dh_auto_test:
chmod u+x Testsuite/x-base-* Testsuite/bug-1-sfetch*
dh_auto_test
Added: trunk/packages/biosquid/trunk/debian/tests/control
===================================================================
--- trunk/packages/biosquid/trunk/debian/tests/control (rev 0)
+++ trunk/packages/biosquid/trunk/debian/tests/control 2014-10-09 14:30:37 UTC (rev 18251)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/biosquid/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/biosquid/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/biosquid/trunk/debian/tests/run-unit-test 2014-10-09 14:30:37 UTC (rev 18251)
@@ -0,0 +1,25 @@
+#!/bin/sh -e
+
+pkg=biosquid
+
+TOOLS="afetch
+ alistat
+ seqstat
+ sfetch
+ shuffle
+ sindex
+ sreformat
+ "
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}-dev/examples/* $ADTTMP
+find . -name "*.gz" -exec gunzip \{\} \;
+cd Testsuite
+sed -i 's#-I../#-I/usr/include/biosquid#' Makefile
+chmod +x x-base*
+make
+for tool in $TOOLS ; do ln -s /usr/bin/$tool ../$tool ; done
+make check
More information about the debian-med-commit
mailing list