diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2012-05-21 23:33:19 +0100 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2012-05-21 23:33:19 +0100 |
commit | e3e5028e2e5c1e55b63dac6624df1c6713a6d274 (patch) | |
tree | ed156d1138d6a52c402f46d27ee0b8afea30ce30 /tox.ini | |
parent | 3f45eaa310b0ead7270d56697018173dc4b7daad (diff) | |
download | numpy-e3e5028e2e5c1e55b63dac6624df1c6713a6d274.tar.gz |
Add a little command-line tool for running tests, plus tox support
Tox is a handy little tool to make it easier than not to run proper
tests that exercise the build system and are run against multiple
Python versions: http://pypi.python.org/pypi/tox
See comment at the top of tox.ini for hints.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..3085741ac --- /dev/null +++ b/tox.ini @@ -0,0 +1,40 @@ +# 'Tox' is a tool for automating sdist/build/test cycles against +# multiple Python versions: +# http://pypi.python.org/pypi/tox +# http://tox.testrun.org/ + +# Running the command 'tox' while in the root of the numpy source +# directory will: +# - Create a numpy source distribution (setup.py sdist) +# - Then for every supported version of Python: +# - Create a virtualenv in .tox/py$VERSION and install +# dependencies. (These virtualenvs are cached across runs unless +# you use --recreate.) +# - Use pip to install the numpy sdist into the virtualenv +# - Run the numpy tests +# To run against a specific subset of Python versions, use: +# tox -e py24,py27 + +# Extra arguments will be passed to test-installed-numpy.py. To run +# the full testsuite: +# tox full +# To run with extra verbosity: +# tox -- -v + +# Tox assumes that you have appropriate Python interpreters already +# installed and that they can be run as 'python2.4', 'python2.5', etc. + +[tox] +envlist = py24,py25,py26,py27,py31,py32 + +[testenv] +deps= + nose +changedir={envdir} +commands=python {toxinidir}/tools/test-installed-numpy.py {posargs:} + +# Not run by default. Set up the way you want then use 'tox -e debug' +# if you want it: +[testenv:debug] +basepython=PYTHON-WITH-DEBUG-INFO +commands=gdb --args {envpython} {toxinidir}/tools/test-installed-numpy.py {posargs:} |