#!/bin/sh
set -eufx

cp -a debian/upstream_tests/ansible "$AUTOPKGTEST_TMP/ansible-tests"
cp debian/upstream_tests/testlib.py "$AUTOPKGTEST_TMP/ansible-tests/"
cd "$AUTOPKGTEST_TMP"

/usr/bin/python3-unit2 discover -v \
    --start-directory ansible-tests \
    --pattern '*_test.py'
