[med-svn] r17498 - in trunk/packages/libtfbs-perl/trunk/debian: . tests
Andreas Tille
tille at moszumanska.debian.org
Wed Jul 23 13:33:58 UTC 2014
Author: tille
Date: 2014-07-23 13:33:58 +0000 (Wed, 23 Jul 2014)
New Revision: 17498
Added:
trunk/packages/libtfbs-perl/trunk/debian/examples
trunk/packages/libtfbs-perl/trunk/debian/tests/
trunk/packages/libtfbs-perl/trunk/debian/tests/control
trunk/packages/libtfbs-perl/trunk/debian/tests/run-unit-test
Modified:
trunk/packages/libtfbs-perl/trunk/debian/changelog
trunk/packages/libtfbs-perl/trunk/debian/control
trunk/packages/libtfbs-perl/trunk/debian/rules
Log:
Add autopkgtest
Modified: trunk/packages/libtfbs-perl/trunk/debian/changelog
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/changelog 2014-07-23 12:43:15 UTC (rev 17497)
+++ trunk/packages/libtfbs-perl/trunk/debian/changelog 2014-07-23 13:33:58 UTC (rev 17498)
@@ -4,6 +4,7 @@
* Moved debian/upstream to debian/upstream/metadata
* Add get-orig-source target with proper uscan call
* debian/watch: use uversionmangle to get properly named tarball
+ * Add autopkgtest
-- Andreas Tille <tille at debian.org> Wed, 23 Jul 2014 14:39:16 +0200
Modified: trunk/packages/libtfbs-perl/trunk/debian/control
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/control 2014-07-23 12:43:15 UTC (rev 17497)
+++ trunk/packages/libtfbs-perl/trunk/debian/control 2014-07-23 13:33:58 UTC (rev 17498)
@@ -5,6 +5,7 @@
Andreas Tille <tille at debian.org>
Section: perl
Priority: optional
+Testsuite: autopkgtest
Build-Depends: debhelper (>= 9),
perl,
pdl,
Added: trunk/packages/libtfbs-perl/trunk/debian/examples
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/examples (rev 0)
+++ trunk/packages/libtfbs-perl/trunk/debian/examples 2014-07-23 13:33:58 UTC (rev 17498)
@@ -0,0 +1 @@
+t
Modified: trunk/packages/libtfbs-perl/trunk/debian/rules
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/rules 2014-07-23 12:43:15 UTC (rev 17497)
+++ trunk/packages/libtfbs-perl/trunk/debian/rules 2014-07-23 13:33:58 UTC (rev 17498)
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+
%:
dh $@
@@ -19,5 +21,10 @@
prove --blib $(TEST_FILES) Ext/t/*.t
endif
+override_dh_installexamples:
+ dh_installexamples
+ mkdir -p debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples/Ext
+ cp -a Ext/t debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples/Ext
+
get-orig-source:
uscan --verbose --force-download --repack --compress xz
Added: trunk/packages/libtfbs-perl/trunk/debian/tests/control
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/tests/control (rev 0)
+++ trunk/packages/libtfbs-perl/trunk/debian/tests/control 2014-07-23 13:33:58 UTC (rev 17498)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/libtfbs-perl/trunk/debian/tests/run-unit-test
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/tests/run-unit-test (rev 0)
+++ trunk/packages/libtfbs-perl/trunk/debian/tests/run-unit-test 2014-07-23 13:33:58 UTC (rev 17498)
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkg=libtfbs-perl
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+cp -a /usr/share/doc/${pkg}/examples/* $ADTTMP
+
+find . -name "*.gz" -exec gunzip \{\} \;
+
+# t/04_DB_TRANSFAC.t needs network access so this test is skipped
+TESTS=$(ls t/*.t | grep -v -e t/04_DB_TRANSFAC.t)
+
+prove --blib $TESTS Ext/t/*.t
+
More information about the debian-med-commit
mailing list