#!/bin/sh
set -eu

# Run outside the source tree so imports use the installed package.
cp -a tests "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
export PYTHONDONTWRITEBYTECODE=1

for python in $(py3versions -s); do
    "$python" -c 'import serializable; print(serializable.__file__)'
    "$python" -m pytest -v --tb=short -p no:cacheprovider tests
done
