#!/bin/sh

set -e
set -x
set -u

export LC_ALL=C.UTF-8

cp -rv test "$AUTOPKGTEST_TMP"
cp -v scripts/supybot-test "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP"

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