#!/bin/sh

set -efu

cp libcloud/test/secrets.py-dist libcloud/test/secrets.py
cp -rv libcloud/test "${AUTOPKGTEST_TMP}"
ln -s "${AUTOPKGTEST_TMP}/test/" /usr/lib/python3/dist-packages/libcloud/test
cd "${AUTOPKGTEST_TMP}"
touch test/secrets.py

for py in $(py3versions -s); do
    echo "[*] testing $py:"
    NO_INTERNET= $py -m pytest '-k not TestCaseMixin'
done
