[med-svn] r22202 - in trunk/packages/rostlab/disulfinder/trunk/debian: . tests
Tatiana Malygina
latticetower-guest at moszumanska.debian.org
Sun Jun 26 03:55:56 UTC 2016
Author: latticetower-guest
Date: 2016-06-26 03:55:55 +0000 (Sun, 26 Jun 2016)
New Revision: 22202
Added:
trunk/packages/rostlab/disulfinder/trunk/debian/tests/
trunk/packages/rostlab/disulfinder/trunk/debian/tests/control
trunk/packages/rostlab/disulfinder/trunk/debian/tests/installation-test
Modified:
trunk/packages/rostlab/disulfinder/trunk/debian/changelog
Log:
add simple testsuite
Modified: trunk/packages/rostlab/disulfinder/trunk/debian/changelog
===================================================================
--- trunk/packages/rostlab/disulfinder/trunk/debian/changelog 2016-06-26 03:52:36 UTC (rev 22201)
+++ trunk/packages/rostlab/disulfinder/trunk/debian/changelog 2016-06-26 03:55:55 UTC (rev 22202)
@@ -3,6 +3,7 @@
* Team upload.
* fix in install override in debian/rules
* add harderning
+ * add simple testsuite
-- Tatiana Malygina <merlettaia at gmail.com> Sun, 26 Jun 2016 05:46:50 +0300
Added: trunk/packages/rostlab/disulfinder/trunk/debian/tests/control
===================================================================
--- trunk/packages/rostlab/disulfinder/trunk/debian/tests/control (rev 0)
+++ trunk/packages/rostlab/disulfinder/trunk/debian/tests/control 2016-06-26 03:55:55 UTC (rev 22202)
@@ -0,0 +1,3 @@
+Tests: installation-test
+Depends: disulfinder, disulfinder-data
+Restrictions: allow-stderr
Added: trunk/packages/rostlab/disulfinder/trunk/debian/tests/installation-test
===================================================================
--- trunk/packages/rostlab/disulfinder/trunk/debian/tests/installation-test (rev 0)
+++ trunk/packages/rostlab/disulfinder/trunk/debian/tests/installation-test 2016-06-26 03:55:55 UTC (rev 22202)
@@ -0,0 +1,27 @@
+#!/bin/sh
+# autopkgtest check: build and run with default test data
+# Author: Tatiana Malygina <merlettaia at gmail.com>
+
+set -e
+
+pkg=disulfinder
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cd $ADTTMP
+
+cp -a /usr/share/doc/${pkg}/examples/* .
+find . -type f -name "*.gz" -exec gunzip \{\} \;
+for lnk in `find . -type l -name "*.gz"` ; do
+ ln -s `basename $(readlink $lnk) .gz` `echo $lnk | sed 's/\.gz$//'`
+ rm $lnk
+done
+
+echo "Run disulfinder..."
+disulfinder -a 1 -p res_id_41483.blastPsiMatTmb
+[ -s res_id_41483.blastPsiMatTmb ]
+echo "check data"
+[ -z $(cmp -s res_id_41483.blastPsiMatTmb res_id_41483.expected_result) ]
More information about the debian-med-commit
mailing list