#!/bin/bash

set -e

cp -a tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

cat > pytest.ini <<EOF
[pytest]
addopts = --strict-markers
markers =
    external: tests that require external libs to run
EOF

for py in $(py3versions -r 2>/dev/null) ; do
    echo "Testing with $py:"
    $py /usr/bin/pytest-3
done

