diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:27:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-29 04:27:33 +0000 |
commit | 4f9bef203a1af4f774f1ae1826c2b0f4c3ddebb2 (patch) | |
tree | 148f045d036bf2e083a679df909adb6bf79fb270 /debian/tests/run-unit-test | |
parent | Adding upstream version 1.0.0. (diff) | |
download | python-tomli-w-debian/1.0.0-2.tar.xz python-tomli-w-debian/1.0.0-2.zip |
Adding debian version 1.0.0-2.debian/1.0.0-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/run-unit-test')
-rwxr-xr-x | debian/tests/run-unit-test | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test new file mode 100755 index 0000000..9d5a3b7 --- /dev/null +++ b/debian/tests/run-unit-test @@ -0,0 +1,21 @@ +#!/bin/bash +set -ex + +pkg=python3-tomli-w + +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 ./ + +for py3vers in $(py3versions -s); do + echo "Testing with $py3vers:" + $py3vers -m pytest -v +done |