[med-svn] r22524 - in trunk/packages/metastudent/trunk/debian: . tests
Tatiana Malygina
latticetower-guest at moszumanska.debian.org
Thu Jul 14 03:27:26 UTC 2016
Author: latticetower-guest
Date: 2016-07-14 03:27:25 +0000 (Thu, 14 Jul 2016)
New Revision: 22524
Added:
trunk/packages/metastudent/trunk/debian/README.test
trunk/packages/metastudent/trunk/debian/docs
trunk/packages/metastudent/trunk/debian/tests/
trunk/packages/metastudent/trunk/debian/tests/control
trunk/packages/metastudent/trunk/debian/tests/installation-test
Modified:
trunk/packages/metastudent/trunk/debian/changelog
Log:
add testsuite, debian/README.test, debian/docs
Added: trunk/packages/metastudent/trunk/debian/README.test
===================================================================
--- trunk/packages/metastudent/trunk/debian/README.test (rev 0)
+++ trunk/packages/metastudent/trunk/debian/README.test 2016-07-14 03:27:25 UTC (rev 22524)
@@ -0,0 +1,13 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by executing
+
+ sh installation-test
+
+in order to confirm its integrity.
+
+To test manually, cd to some dir where you have write permissions and do
+
+ cp /usr/share/doc/metastudent/examples/test.fasta .
+ metastudent -i test.fasta -o test.result --temp-dir=.
Modified: trunk/packages/metastudent/trunk/debian/changelog
===================================================================
--- trunk/packages/metastudent/trunk/debian/changelog 2016-07-14 03:19:25 UTC (rev 22523)
+++ trunk/packages/metastudent/trunk/debian/changelog 2016-07-14 03:27:25 UTC (rev 22524)
@@ -4,6 +4,7 @@
* cme fix dpkg-control
* cme fix dpkg-copyright
* add hardening
+ * add testsuite, debian/README.test, debian/docs
-- Tatiana Malygina <merlettaia at gmail.com> Wed, 13 Jul 2016 22:45:14 +0300
Added: trunk/packages/metastudent/trunk/debian/docs
===================================================================
--- trunk/packages/metastudent/trunk/debian/docs (rev 0)
+++ trunk/packages/metastudent/trunk/debian/docs 2016-07-14 03:27:25 UTC (rev 22524)
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/installation-test
Added: trunk/packages/metastudent/trunk/debian/tests/control
===================================================================
--- trunk/packages/metastudent/trunk/debian/tests/control (rev 0)
+++ trunk/packages/metastudent/trunk/debian/tests/control 2016-07-14 03:27:25 UTC (rev 22524)
@@ -0,0 +1,2 @@
+Tests: installation-test
+Depends: @, @builddeps@, metastudent-data, libgo-perl
Added: trunk/packages/metastudent/trunk/debian/tests/installation-test
===================================================================
--- trunk/packages/metastudent/trunk/debian/tests/installation-test (rev 0)
+++ trunk/packages/metastudent/trunk/debian/tests/installation-test 2016-07-14 03:27:25 UTC (rev 22524)
@@ -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=metastudent
+
+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
+
+# call example from man:
+metastudent -i test.fasta -o test.result.new --temp-dir=$ADTTMP
+[ -z $(cmp -s test.result.BPO.txt test.result.new.BPO.txt) ]
+[ -z $(cmp -s test.result.MFO.txt test.result.new.MFO.txt) ]
+[ -z $(cmp -s test.result.CCO.txt test.result.new.CCO.txt) ]
More information about the debian-med-commit
mailing list