Codebase list check-manifest / f4d9b3e
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
2 changed file(s) with 10 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
77 brz,
88 subversion,
99 tox,
10 python3-coverage,
1110 python3-nose,
12 python3-flake8,
13 Restrictions: allow-stderr
11 Restrictions: allow-stderr, needs-root
00 #!/bin/sh
11
2 set -efu
2 set -efux
33
44 # See bug #941558.
55 export HOME=/tmp/
66
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