#!/bin/sh

set -e

cp -a tests "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"

PYBUILD_OPTIONS="\
-W ignore::PendingDeprecationWarning \
"

for p_ver in $(py3versions -s); do
    echo
    echo "**************************"
    echo "*** Testing with ${p_ver}"
    echo "**************************"
    echo
    ${p_ver} -m pytest -v $PYBUILD_OPTIONS tests
    rm -rf .pytest_cache
done

exit 0
