#!/bin/sh
set -efu

export XDG_CACHE_HOME="$AUTOPKGTEST_TMP/.cache"

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

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

for py in $pys; do
	echo "=== $py ==="
	$py -m pytest tests -m "not spamassassin" 2>&1
done
