summaryrefslogtreecommitdiff
path: root/alltests.sh
blob: 096b1c5c54edcc639e7b31d1f81cf4c03ec3270a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
#
# To run the tests on many Pythons, create a series of virtualenvs in a 
# sibling directory called "ve".  Give the directories there names like
# "26" for Python 2.6.  
#
# All the Python installs have a .pth pointing to the egg file created by
# 2.6, so install the testdata in 2.6
ve=${COVERAGE_VE:-../ve}
echo "Testing in $ve"
source $ve/26/bin/activate
make --quiet testdata

for v in 23 24 25 26 27 31 32
do 
    source $ve/$v/bin/activate
    python setup.py -q develop
    python pybanner.py "with C tracer"
    COVERAGE_TEST_TRACER=c nosetests $@
    python pybanner.py "with Python tracer"
    rm coverage/tracer*.so
    COVERAGE_TEST_TRACER=py nosetests $@
done

for v in pypy
do
    source $ve/$v/bin/activate
    python setup.py -q develop
    python pybanner.py "with Python tracer"
    COVERAGE_TEST_TRACER=py nosetests $@
done

make --quiet clean