diff options
Diffstat (limited to 'debian/tests/run-unit-test')
-rwxr-xr-x | debian/tests/run-unit-test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test new file mode 100755 index 0000000..1ca1b94 --- /dev/null +++ b/debian/tests/run-unit-test @@ -0,0 +1,19 @@ +#!/bin/bash +set -ex + +pkg=python3-tomli + +START="$(dirname "$(dirname "$(dirname "$(readlink -fm "$0")")")")" + +if [ "$AUTOPKGTEST_TMP" = "" ] ; then + AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) + trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM +fi + +cd "$AUTOPKGTEST_TMP" + +cp -r ${START}/tests ./ +cp -r ${START}/benchmark ./ + +python3 -m pytest -n auto -k "not test_own_pyproject" --strict-markers \ + --strict-config -o xfail_strict=true |