coverage.py / alltests.sh

#!/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 -c "import platform, sys; print('=== Python %s with C tracer (%s) ===' % (platform.python_version(), sys.executable))"
    COVERAGE_TEST_TRACER=c nosetests $@
    python -c "import platform, sys; print('=== Python %s with Python tracer (%s) ===' % (platform.python_version(), sys.executable))"
    rm coverage/tracer*.so
    COVERAGE_TEST_TRACER=py nosetests $@
done

make --quiet clean
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.