#!/usr/bin/sh

set -e -u

# Copy all test files listed in d/pybuild.testfiles
while IFS= read -r file; do cp -v -a "$file" "$AUTOPKGTEST_TMP"; done < "debian/pybuild.testfiles"

cd "$AUTOPKGTEST_TMP"

# Symlink the module into the location expected by the testsuite
ln -v -s /usr/lib/python3/dist-packages/vermin .

for py in $(py3versions -s); do
	echo "Running tests with $py:"
	$py runtests.py
done
