[med-svn] [Git][med-team/q2-feature-classifier][master] Add autopkgtest
Liubov Chuprikova
gitlab at salsa.debian.org
Fri Jul 12 10:57:02 BST 2019
Liubov Chuprikova pushed to branch master at Debian Med / q2-feature-classifier
Commits:
8949c512 by Liubov Chuprikova at 2019-07-12T09:55:26Z
Add autopkgtest
just run build-time tests so far
- - - - -
2 changed files:
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @
+Depends: @, python3-pytest-cov
Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,18 +1,21 @@
#!/bin/bash
set -e
-pkg=#PACKAGENAME#
+pkg=q2_feature_classifier
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}"
+cp -a /usr/lib/python3/dist-packages/${pkg}* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
-#do_stuff_to_test_package#
+if [ ! -f /usr/lib/python3/dist-packages/pytest_cov/__init__.py ] ; then
+ echo "Please install package python3-pytest-cov to run this script"
+ exit 1
+fi
+
+# Run build-time tests
+py.test-3 --cov=q2_feature_classifier
View it on GitLab: https://salsa.debian.org/med-team/q2-feature-classifier/commit/8949c51281ddd8db08e16dad7c297e390bed6f41
--
View it on GitLab: https://salsa.debian.org/med-team/q2-feature-classifier/commit/8949c51281ddd8db08e16dad7c297e390bed6f41
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/20190712/73770e31/attachment-0001.html>
More information about the debian-med-commit
mailing list