Debian Codegraph @

debian/tests/pytest

raw
1 #!/bin/sh
2
3 set -ex
4
5 # make sure that the tests cannot rely on the script from the source
6 cp -r src "$AUTOPKGTEST_TMP"
7 rm "$AUTOPKGTEST_TMP/src/img2pdf.py"
8 cd "$AUTOPKGTEST_TMP"
9
10 for py in $(py3versions -s); do
11 env img2pdfprog=/usr/bin/img2pdf \
12 "$py" \
13 -m pytest \
14 --basetemp="$AUTOPKGTEST_ARTIFACTS/pytest" \
15 --verbose \
16 src/img2pdf_test.py
17 done