summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2012-07-07 09:27:36 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2012-07-07 09:27:36 -0700
commitc597750cb3dbfc737bd69248d80391068a25541d (patch)
tree22d0a503f4ed742675232921432c40e9151f72e4
parentb395676e69dc3a4ec3ca39e1bd1bd711089f4f9c (diff)
parentaf4c4442f0e67ec6dd2a914604fc37d43f91fd1d (diff)
downloadpython-coveragepy-c597750cb3dbfc737bd69248d80391068a25541d.tar.gz
Merge with upstream changes
-rw-r--r--.hgignore1
-rw-r--r--tox.ini27
2 files changed, 28 insertions, 0 deletions
diff --git a/.hgignore b/.hgignore
index d0041d7..cd38bf5 100644
--- a/.hgignore
+++ b/.hgignore
@@ -21,6 +21,7 @@ dist
htmlcov
MANIFEST
setuptools-*.egg
+.tox
# Stuff in the test directory.
zipmods.zip
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 0000000..b67d5f2
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,27 @@
+# Tox (http://tox.testrun.org/) is a tool for running tests
+# in multiple virtualenvs. This configuration file will run the
+# test suite on all supported python versions. To use it, "pip install tox"
+# and then run "tox" from this directory.
+
+[tox]
+envlist = py24, py25, py26, py27, py32, py33, pypy
+
+[testenv]
+setenv = PYTHONPATH=test/eggsrc
+commands =
+ {envpython} setup.py clean
+ {envpython} setup.py develop
+
+ # Create test/zipmods.zip
+ make testdata
+
+ # Remove tracer.so so that we can test the PyTracer
+ rm {toxinidir}/coverage/tracer.so
+
+ # Test with the PyTracer
+ env COVERAGE_TEST_TRACER="py" nosetests -w {toxinidir}
+
+ # Build tracer.so and test with the CTracer
+ {envpython} setup.py build_ext --inplace
+ env COVERAGE_TEST_TRACER="c" nosetests -w {toxinidir}
+deps = nose