#!/bin/sh

set -e
set -x
set -u

export LC_ALL=C.UTF-8

cp -rv test "$AUTOPKGTEST_TMP"
cp -v src/scripts/limnoria_test.py "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP"

for python in $(py3versions --supported);do
   printf "###\\n### Now testing %s\\n###\\n" "$python"
   "$python" ./limnoria_test.py test \
       -v \
      --no-network \
      --plugins-dir=/usr/lib/python3/dist-packages/supybot/plugins/
done
