#!/bin/sh
set -eu

# supported versions of python [eg. python3.10 python3.9]
pyvers="$(py3versions -r 2>/dev/null)"

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

for py in ${pyvers}; do
    echo "====== Running tests for ${py} ======"
    printf '$ %s\n' "${py} -m unittest -v tests.make_suite 2>&1"
    ${py} -m unittest -v tests.make_suite 2>&1
done
