#!/bin/sh

set -e

export PYTHONPATH=$PYTHONPATH:/usr/share/spiderfoot
export HOME=$AUTOPKGTEST_TMP

# VERSION is required for the tests
cp VERSION "$AUTOPKGTEST_TMP/"
cp -r test "$AUTOPKGTEST_TMP/" && cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -i); do
    $py -Wd -m pytest -k 'not test_spiderfootthreadpool and not test_spiderfootscanner and not test_sf and not test_sfcli and not test_sfwebui and not test_spiderfootwebui' -v -x test 2>&1;
done
