Loading debian/tests/control 0 → 100644 +3 −0 Original line number Diff line number Diff line Tests: run-unit-test Depends: @, python3-pytest-cov Restrictions: allow-stderr debian/tests/run-unit-test 0 → 100644 +24 −0 Original line number Diff line number Diff line #!/bin/bash set -e pkg=q2_taxa if [ "${AUTOPKGTEST_TMP}" = "" ] ; then AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM fi cp -a /usr/lib/python3/dist-packages/${pkg}* "${AUTOPKGTEST_TMP}" cd "${AUTOPKGTEST_TMP}" 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 # one of the tests need the directory that doesn't exist for some reason mkdir -v q2_taxa/assets/barplot/dist # Run build-time tests py.test-3 --cov=${pkg} Loading
debian/tests/control 0 → 100644 +3 −0 Original line number Diff line number Diff line Tests: run-unit-test Depends: @, python3-pytest-cov Restrictions: allow-stderr
debian/tests/run-unit-test 0 → 100644 +24 −0 Original line number Diff line number Diff line #!/bin/bash set -e pkg=q2_taxa if [ "${AUTOPKGTEST_TMP}" = "" ] ; then AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM fi cp -a /usr/lib/python3/dist-packages/${pkg}* "${AUTOPKGTEST_TMP}" cd "${AUTOPKGTEST_TMP}" 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 # one of the tests need the directory that doesn't exist for some reason mkdir -v q2_taxa/assets/barplot/dist # Run build-time tests py.test-3 --cov=${pkg}