[med-svn] r21054 - in trunk/packages/aegean/trunk/debian: . tests

Sascha Steinbiss sascha-guest at moszumanska.debian.org
Sat Jan 9 14:12:05 UTC 2016


Author: sascha-guest
Date: 2016-01-09 14:12:05 +0000 (Sat, 09 Jan 2016)
New Revision: 21054

Added:
   trunk/packages/aegean/trunk/debian/tests/
   trunk/packages/aegean/trunk/debian/tests/control
   trunk/packages/aegean/trunk/debian/tests/functional_tests
Modified:
   trunk/packages/aegean/trunk/debian/control
Log:
add autopkgtest


Modified: trunk/packages/aegean/trunk/debian/control
===================================================================
--- trunk/packages/aegean/trunk/debian/control	2016-01-09 13:34:59 UTC (rev 21053)
+++ trunk/packages/aegean/trunk/debian/control	2016-01-09 14:12:05 UTC (rev 21054)
@@ -9,6 +9,7 @@
                python,
                git
 Standards-Version: 3.9.6
+Testsuite: autopkgtest
 Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/aegean/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/aegean/trunk/
 Homepage: http://standage.github.io/AEGeAn

Added: trunk/packages/aegean/trunk/debian/tests/control
===================================================================
--- trunk/packages/aegean/trunk/debian/tests/control	                        (rev 0)
+++ trunk/packages/aegean/trunk/debian/tests/control	2016-01-09 14:12:05 UTC (rev 21054)
@@ -0,0 +1,2 @@
+Tests: functional_tests
+Depends: @, python


Property changes on: trunk/packages/aegean/trunk/debian/tests/control
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/packages/aegean/trunk/debian/tests/functional_tests
===================================================================
--- trunk/packages/aegean/trunk/debian/tests/functional_tests	                        (rev 0)
+++ trunk/packages/aegean/trunk/debian/tests/functional_tests	2016-01-09 14:12:05 UTC (rev 21054)
@@ -0,0 +1,27 @@
+#!/bin/sh
+# autopkgtest check: Run test cases for installed AEGeAn tools
+# Author: Sascha Steinbiss <sascha at steinbiss.name>
+set -e
+
+ORIGDIR=$(pwd)
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+
+# change paths to reflect installed binaries
+for f in test/*.sh; do
+  sed -r 's/(^|[^/])bin\//\1/g' $f > $WORKDIR/`basename $f`;
+  chmod +x $WORKDIR/`basename $f`;
+done
+cp -pr $ORIGDIR/data $WORKDIR
+cd $WORKDIR
+
+# adjust test data
+sed -r -i 's/(^|[^/])bin\//\1/g' `grep -Rl bin data`
+
+# run tests
+for f in *.sh; do
+	./$f;
+done
+
+echo "run: OK"
+


Property changes on: trunk/packages/aegean/trunk/debian/tests/functional_tests
___________________________________________________________________
Added: svn:executable
   + *




More information about the debian-med-commit mailing list