#!/bin/bash

set -e

python3_versions=$(py3versions -r 2>/dev/null)

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 $python3_versions; do
    echo "Testing with $py:"
    $py -m pytest
done

