blob: 9d5a3b727f92358977556fdedb82b1797bda186b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|