File: pytest

package info (click to toggle)
diffoscope 297%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 11,304 kB
  • sloc: python: 17,173; sh: 114; makefile: 97; xml: 36; javascript: 2
file content (20 lines) | stat: -rwxr-xr-x 564 bytes parent folder | download | duplicates (4)
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="aapt2 androguard apktool asar dexdump zipinfo pedump oggDump ppudump 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