d/tests/*: Revamp autopkgtest and fix it.
Previously, we were (naively) testing things using tox, which ended up
running pip, and therefore not testing our package. The autopkgtest
has now been rewritten and improved, so that everything is properly
tested.
Sergio Durigan Junior
3 years ago
7 | 7 |
brz,
|
8 | 8 |
subversion,
|
9 | 9 |
tox,
|
10 | |
python3-coverage,
|
11 | 10 |
python3-nose,
|
12 | |
python3-flake8,
|
13 | |
Restrictions: allow-stderr
|
|
11 |
Restrictions: allow-stderr, needs-root
|
0 | 0 |
#!/bin/sh
|
1 | 1 |
|
2 | |
set -efu
|
|
2 |
set -efux
|
3 | 3 |
|
4 | 4 |
# See bug #941558.
|
5 | 5 |
export HOME=/tmp/
|
6 | 6 |
|
7 | |
tox -e py3
|
8 | |
tox -e coverage
|
|
7 |
if [ -z "$AUTOPKGTEST_NORMAL_USER" ]; then
|
|
8 |
adduser --quiet --disabled-login --gecos '' checkmanifest
|
|
9 |
AUTOPKGTEST_NORMAL_USER=checkmanifest
|
|
10 |
fi
|
|
11 |
|
|
12 |
for py in $(py3versions -s); do
|
|
13 |
runuser -u "$AUTOPKGTEST_NORMAL_USER" -- $py -m nose -v --exclude=test_build_sdist
|
|
14 |
done
|