diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-01-15 14:05:47 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-01-15 14:05:47 -0500 |
commit | 92ea40eb3f4d073276de0470bdee5f8c0179cd82 (patch) | |
tree | 8d0254ec072def1be03a3725efe7c9ee4d0dc4dd | |
parent | 24567ee88042326542fff3e86c183c63576e64d1 (diff) | |
download | python-coveragepy-92ea40eb3f4d073276de0470bdee5f8c0179cd82.tar.gz |
Now we can run the tests on Unixy boxes
-rwxr-xr-x | alltests.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/alltests.sh b/alltests.sh new file mode 100755 index 0000000..7c8b050 --- /dev/null +++ b/alltests.sh @@ -0,0 +1,23 @@ +#!/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 +source ../ve/26/bin/activate +make --quiet testdata + +for v in 24 25 26 27 # 23 31 32 +do + source ../ve/$v/bin/activate + python setup.py -q develop + echo "=== $v c ===" + COVERAGE_TEST_TRACER=c nosetests $@ + echo "=== $v py ===" + rm coverage/tracer.so + COVERAGE_TEST_TRACER=py nosetests $@ +done + +make --quiet clean |