[med-svn] [Git][med-team/paml][master] Add autopkgtests
Pranav Ballaney
gitlab at salsa.debian.org
Fri May 29 04:51:53 BST 2020
Pranav Ballaney pushed to branch master at Debian Med / paml
Commits:
f8bfdc03 by Pranav Ballaney at 2020-05-29T09:20:59+05:30
Add autopkgtests
- - - - -
5 changed files:
- + debian/README.test
- debian/changelog
- debian/paml.docs
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+ sh run-unit-test
+
+in order to confirm its integrity.
=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+paml (4.9j+dfsg-3) UNRELEASED; urgency=medium
+
+ [ Etienne Mollier ]
+ * upstream informed of the patch
+
+ [ Pranav Ballaney ]
+ * Add autopkgtests
+
+ -- Pranav Ballaney <ballaneypranav at gmail.com> Fri, 29 May 2020 09:20:27 +0530
+
paml (4.9j+dfsg-2) unstable; urgency=medium
* Team upload.
=====================================
debian/paml.docs
=====================================
@@ -1,2 +1,4 @@
*.txt
debian/profile.d
+debian/tests/run-unit-test
+debian/README.test
\ No newline at end of file
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,80 @@
+#!/bin/bash
+set -e
+
+pkg=paml
+
+export LC_ALL=C.UTF-8
+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}"
+
+echo -e "\e[93m\e[1mTest 1\e[0m"
+cd HIVNSsites
+codeml
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 2\e[0m"
+cd lysin
+codeml
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 3\e[0m"
+codeml codemlYangSwanson2002.ctl
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 4\e[0m"
+cd lysozyme
+codeml
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 5\e[0m"
+codeml lysozymeSmall.ctl
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 6\e[0m"
+codeml lysozymeLarge.ctl
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 7\e[0m"
+cd MouseLemurs
+baseml
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 8\e[0m"
+cd mtCDNA
+codeml codeml.AAcodon.ctl
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 9\e[0m"
+cd mtCDNAape
+codeml
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 10\e[0m"
+codeml codeml.HC.ctl
+cd ..
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
View it on GitLab: https://salsa.debian.org/med-team/paml/-/commit/f8bfdc03ed385d37534590fc198496f05505f276
--
View it on GitLab: https://salsa.debian.org/med-team/paml/-/commit/f8bfdc03ed385d37534590fc198496f05505f276
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/20200529/36e2b426/attachment-0001.html>
More information about the debian-med-commit
mailing list