#!/bin/sh

export PYTHONWARNINGS=d

python3_all="$(py3versions -s 2>/dev/null)"

TESTS_TO_EXCLUDE="not test_automatic_rename_option"

cp -r conftest.py examples tests $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

for py in $python3_all; do
    echo "=== $py ==="
    $py -m pytest -k "$TESTS_TO_EXCLUDE" 2>&1
done
