#!/bin/sh
set -efu

pys="$(py3versions -sv 2> /dev/null)"

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

for py in $pys; do
	echo "=== python$py ==="
	python$py -m unittest tests/flexmock_test.py 2>&1
	python$py -m twisted.trial tests/flexmock_test.py
	python$py -m zope.testrunner --test-path=. --test-file-pattern=flexmock_test
	python$py -m pytest tests/flexmock_pytest_test.py
done
