File: unittests

package info (click to toggle)
python-launchpadlib 1.10.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 816 kB
  • ctags: 505
  • sloc: python: 2,002; makefile: 15; sh: 14
file content (20 lines) | stat: -rwxr-xr-x 376 bytes parent folder | download | duplicates (2)
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="$ADTTMP/home"
mkdir "$HOME"

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

cd "$ADTTMP"
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