#!/bin/sh
set -eu

source_dir=$(pwd)
cp -r tests "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
export MPLBACKEND=Agg
export MPLCONFIGDIR="$AUTOPKGTEST_TMP/matplotlib"
python3 -m pytest -c "$source_dir/debian/tests/pytest.ini" tests
