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
|