#!/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"
# tools/ hash some package modules relative to the source tree.
ln -s "$(python3 -c 'import orfdata, os; print(os.path.dirname(orfdata.__file__))')" orfdata
python3 --version
exec python3 -m pytest -q @pytest.args tests
