Loading debian/tests/control +1 −1 Original line number Diff line number Diff line Tests: run-unit-test Depends: @ Depends: @, python3-pytest-cov Restrictions: allow-stderr debian/tests/run-unit-test +9 −6 Original line number Diff line number Diff line #!/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 Loading
debian/tests/control +1 −1 Original line number Diff line number Diff line Tests: run-unit-test Depends: @ Depends: @, python3-pytest-cov Restrictions: allow-stderr
debian/tests/run-unit-test +9 −6 Original line number Diff line number Diff line #!/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