#!/bin/sh

set -e -u

SOURCE_DIR="$(pwd)"

for py in $(py3versions -s 2>/dev/null); do
	cd "$AUTOPKGTEST_TMP"
	# cleanup
	rm -rf "$AUTOPKGTEST_TMP"/*
	# create a fresh copy of the tests
	cp -a "$SOURCE_DIR"/tests "$AUTOPKGTEST_TMP"/
	echo "Running testsuite with $py:"
	$py -m pytest --verbose --full-trace --ignore=tests/yencfiles/
done
