#!/bin/sh
set -eu

# Run outside the source tree so imports exercise the installed package.
cp -a tests tools pyproject.toml debian/tests/pytest.args "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
python3 --version
exec python3 -m pytest -q @pytest.args tests
