[med-svn] [Git][med-team/prottest][master] Add functional test
Tássia Camões Araújo
gitlab at salsa.debian.org
Sat Feb 20 20:33:56 GMT 2021
Tássia Camões Araújo pushed to branch master at Debian Med / prottest
Commits:
b0e068f9 by Tassia Camoes Araujo at 2021-02-20T15:33:53-05:00
Add functional test
- - - - -
2 changed files:
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+pkg=prottest
+prottest_jar=/usr/share/prottest/prottest-3.4.2.jar
+
+# Trivial test
+prottest -h
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+ AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cd $AUTOPKGTEST_TMP
+
+cp -a /usr/share/doc/${pkg}/examples/* .
+
+# Run simulations with demo models
+java -jar ${prottest_jar} -i COX2_PF0016/alignment -t COX2_PF0016/tree -S 0 -all-distributions -F -AIC -BIC -tc 0.5
+java -jar ${prottest_jar} -i Ribosomal_L5_PF00673/alignment -t Ribosomal_L5_PF00673/tree -S 0 -all-distributions -F -AIC -BIC -tc 0.5
+
+echo "PASS"
View it on GitLab: https://salsa.debian.org/med-team/prottest/-/commit/b0e068f9a11813fa23be7816101e9d8df0e865a4
--
View it on GitLab: https://salsa.debian.org/med-team/prottest/-/commit/b0e068f9a11813fa23be7816101e9d8df0e865a4
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210220/b7c44310/attachment-0001.htm>
More information about the debian-med-commit
mailing list