File: pytest

package info (click to toggle)
img2pdf 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 976 kB
  • sloc: python: 10,264; sh: 39; makefile: 7
file content (17 lines) | stat: -rwxr-xr-x 369 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -ex

# make sure that the tests cannot rely on the script from the source
cp -r src "$AUTOPKGTEST_TMP"
rm "$AUTOPKGTEST_TMP/src/img2pdf.py"
cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -s); do
  env img2pdfprog=/usr/bin/img2pdf \
    "$py" \
    -m pytest \
    --basetemp="$AUTOPKGTEST_ARTIFACTS/pytest" \
    --verbose \
    src/img2pdf_test.py
done