#!/bin/sh
set -e

# Run the full test suite against installed package
# Copy test directory to a temporary location to avoid import conflicts
# (autopkgtest starts us in the source tree root)
cp -r test "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"

# Run tests using the installed package (not the source tree)
for python in $(py3versions -s); do
    "$python" -m pytest -v test/
done
