diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2011-02-06 08:27:00 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-02-06 08:27:00 -0500 |
| commit | 08bfeefda3eee4cce68e4b817aa3c65a05d45160 (patch) | |
| tree | f271ef26d6b524cbb61b51ae9e7eb8e6790dceb8 /alltests.sh | |
| parent | 460265da2e04bf22363a245c0fb44c2b6634d065 (diff) | |
| download | python-coveragepy-08bfeefda3eee4cce68e4b817aa3c65a05d45160.tar.gz | |
A script to make virtualenvs for testing.
Diffstat (limited to 'alltests.sh')
| -rwxr-xr-x | alltests.sh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/alltests.sh b/alltests.sh index 3371021..be19929 100755 --- a/alltests.sh +++ b/alltests.sh @@ -6,16 +6,18 @@ # # 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 +ve=${COVERAGE_VE:-../ve} +echo "Testing in $ve" +source $ve/26/bin/activate make --quiet testdata for v in 24 25 26 27 31 32 # 23 do - source ../ve/$v/bin/activate + source $ve/$v/bin/activate python setup.py -q develop - python -c "import platform; print('=== Python %s with C tracer ===' % platform.python_version())" + 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; print('=== Python %s with Python tracer ===' % platform.python_version())" + 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 |
