[med-svn] [Git][med-team/clearcut][master] add autopkgtest
Joyce Zhou
gitlab at salsa.debian.org
Wed Mar 27 23:20:32 GMT 2019
Joyce Zhou pushed to branch master at Debian Med / clearcut
Commits:
2a6198d1 by Joyce Zhou at 2019-03-27T23:16:50Z
add autopkgtest
run-unit-test contains two clearcut functionality tests.
- - - - -
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,22 @@
+set -e
+
+pkg="clearcut"
+
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ # Double quote below to expand the temporary directory variable now versus
+ # later is on purpose.
+ # shellcheck disable=SC2064
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+# Compute tree by supplying alignment of DNA sequences from a file
+clearcut --alignment --DNA --in=alignment1.dist --out=treefile.tre
+# Compute tree from matrix
+clearcut --distance --in=symmetric.dist --out=symmtree.tre
+
+echo "test pass"
View it on GitLab: https://salsa.debian.org/med-team/clearcut/commit/2a6198d11fded91084bb9ec1641a0125d4a8000c
--
View it on GitLab: https://salsa.debian.org/med-team/clearcut/commit/2a6198d11fded91084bb9ec1641a0125d4a8000c
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/20190327/aeac8946/attachment.html>
More information about the debian-med-commit
mailing list