[med-svn] r22226 - in trunk/packages/rostlab/rate4site/trunk/debian: . tests
Tatiana Malygina
latticetower-guest at moszumanska.debian.org
Mon Jun 27 16:04:22 UTC 2016
Author: latticetower-guest
Date: 2016-06-27 16:04:21 +0000 (Mon, 27 Jun 2016)
New Revision: 22226
Added:
trunk/packages/rostlab/rate4site/trunk/debian/tests/
trunk/packages/rostlab/rate4site/trunk/debian/tests/control
trunk/packages/rostlab/rate4site/trunk/debian/tests/installation-test
Modified:
trunk/packages/rostlab/rate4site/trunk/debian/changelog
Log:
add testsuite
Modified: trunk/packages/rostlab/rate4site/trunk/debian/changelog
===================================================================
--- trunk/packages/rostlab/rate4site/trunk/debian/changelog 2016-06-27 14:12:30 UTC (rev 22225)
+++ trunk/packages/rostlab/rate4site/trunk/debian/changelog 2016-06-27 16:04:21 UTC (rev 22226)
@@ -1,3 +1,10 @@
+rate4site (3.0.0-3) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Add simple testsuite
+
+ -- Tatiana Malygina <merlettaia at gmail.com> Mon, 27 Jun 2016 19:02:50 +0300
+
rate4site (3.0.0-2) unstable; urgency=low
* debian/upstream: Fix syntax
Added: trunk/packages/rostlab/rate4site/trunk/debian/tests/control
===================================================================
--- trunk/packages/rostlab/rate4site/trunk/debian/tests/control (rev 0)
+++ trunk/packages/rostlab/rate4site/trunk/debian/tests/control 2016-06-27 16:04:21 UTC (rev 22226)
@@ -0,0 +1,3 @@
+Tests: installation-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/packages/rostlab/rate4site/trunk/debian/tests/installation-test
===================================================================
--- trunk/packages/rostlab/rate4site/trunk/debian/tests/installation-test (rev 0)
+++ trunk/packages/rostlab/rate4site/trunk/debian/tests/installation-test 2016-06-27 16:04:21 UTC (rev 22226)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# autopkgtest check: build and run with default test data
+# Author: Tatiana Malygina <merlettaia at gmail.com>
+
+set -e
+
+pkg=rate4site
+
+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
+
+cat <<EOF > msa.fasta
+>string1
+CAPTIA-N
+>string2
+CAPT-A--
+>string3
+CAPT-AIN
+EOF
+# This creates file with a simple multiple sequence alignment in one of
+# supported formats (namely, in .fasta format). This doesn't produce any
+# sensible data, but simply shows that program executes and outputs some
+# results.
+
+echo "Run rate4site..."
+rate4site -s msa.fasta
+[ -s TheTree.txt ]
+[ -s r4s.res ]
More information about the debian-med-commit
mailing list