File: all

package info (click to toggle)
python-mechanize 1%3A0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 2,056 kB
  • ctags: 3,377
  • sloc: python: 23,140; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# includable shell script to make test scripts smaller

set -e

PYVERS=$(pyversions -r debian/control)
tmpdir=$(mktemp -d)
curdir=$(pwd)

cp test.py "$tmpdir"
cp -r examples "$tmpdir"
cp -r test "$tmpdir"
cp -r test-tools "$tmpdir"

cd "$tmpdir"

for python in ${PYVERS}; do
    echo Running tests for ${python}:
    ${python} "${tmpdir}/test.py" 2>&1
done

cd "$curdir"
rm -rf "$tmpdir"