File: pytest

package info (click to toggle)
diffoscope 177
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,340 kB
  • sloc: python: 14,727; makefile: 97; sh: 81; xml: 26; javascript: 2
file content (20 lines) | stat: -rwxr-xr-x 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if ! [ -d "$AUTOPKGTEST_TMP" ]; then
    echo "AUTOPKGTEST_TMP not set." >&2
    exit 1
fi

export LIBGUESTFS_MEMSIZE=128
if [ "$(basename "$0")" = "pytest-with-recommends" ]; then
    export DIFFOSCOPE_FAIL_TESTS_ON_MISSING_TOOLS="apktool zipinfo pedump oggDump ppudump cbfstool otool lipo radare2"
fi

for py in $(py3versions -s); do
    echo "@@@@@@@@ Running against $py"
    cp -r tests pyproject.toml "$AUTOPKGTEST_TMP"
    (cd "$AUTOPKGTEST_TMP"; "$py" -m pytest -vv -l -r a)
    rm -rf "${AUTOPKGTEST_TMP:?}"/*
done