#!/bin/sh
set -eu

cp -r tests "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
export MPLBACKEND=Agg
export MPLCONFIGDIR="$AUTOPKGTEST_TMP/matplotlib"

for python in $(py3versions -s); do
    "$python" -m pytest -v tests
done
