File: unittests

package info (click to toggle)
python-launchpadlib 1.10.6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 432 kB
  • sloc: python: 2,002; makefile: 15; sh: 14
file content (20 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
set -efu

# Launchpadlib tries to keep a cache in HOME
HOME="$AUTOPKGTEST_TMP/home"
mkdir "$HOME"

pythons="$(pyversions -sv)"
pythons3="$(py3versions -sv)"

cd "$AUTOPKGTEST_TMP"
for py in $pythons; do
	echo "=== python$py ==="
	nosetests-$py launchpadlib.tests 2>&1
done

for py in $pythons3; do
	echo "=== python$py ==="
	python$py /usr/bin/nosetests3 launchpadlib.tests 2>&1
done