#!/bin/sh

set -e
set -x
set -u

export LC_ALL=C.UTF-8

cp -rv test $ADTTMP
cp -v scripts/supybot-test $ADTTMP

cd $ADTTMP

# plugins.Unix.test.UnixTestCase.testCall checks whether there is a 'src' in .
# but we're running the testsuite out of the source tree, so let's fake a 'src'
# thing in the current directory.
touch src

python3 ./supybot-test test \
    --no-network \
    --disable-multiprocessing \
    --plugins-dir=/usr/lib/python3/dist-packages/supybot/plugins/
