Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/bash
2 set -e
3
4 pkg="q2templates"
5
6 export LC_ALL="C.UTF-8"
7 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
8 AUTOPKGTEST_TMP="$(mktemp -d /tmp/${pkg}-test.XXXXXX)"
9 trap "rm -rf '${AUTOPKGTEST_TMP}'" 0 INT QUIT ABRT PIPE TERM
10 fi
11
12 cp -a "/usr/lib/python3/dist-packages/${pkg}/tests" "${AUTOPKGTEST_TMP}"
13
14 cd "${AUTOPKGTEST_TMP}"
15
16 if ! command -v py.test-3 >/dev/null
17 then
18 cat >&2 <<-ERR
19 error: command py.test-3 not found, please install "python3-pytest"
20 ERR
21 exit 1
22 fi
23
24 py.test-3