#!/bin/sh

export PYTHONWARNINGS=d

python3_all="$(py3versions -s 2>/dev/null)"

cp -r tests $AUTOPKGTEST_TMP
cd "$AUTOPKGTEST_TMP"

ret=0

for py in $python3_all; do
    echo "=== $py ==="
    $py -c 'from libtmux import pytest_plugin; print(pytest_plugin);' || ret=1
done

exit $ret
