mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-29 15:43:54 +00:00
Allow some control over trial command run by tox
The TAHOE_LAFS_TRIAL_ARGS environment variable can now be used to pass arguments to tox. If it is unset, some sensible defaults will be used.
This commit is contained in:
parent
a4be2dce71
commit
9429fb8fad
@ -46,6 +46,11 @@ To run the unit test suite:
|
|||||||
|
|
||||||
* ``tox``
|
* ``tox``
|
||||||
|
|
||||||
|
You can pass arguments to ``trial`` with an environment variable. For
|
||||||
|
example, you can run the test suite on multiple cores to speed it up:
|
||||||
|
|
||||||
|
* ``TAHOE_LAFS_TRIAL_ARGS="-j4" tox``
|
||||||
|
|
||||||
For more detailed instructions, read `<docs/INSTALL.rst>`_ .
|
For more detailed instructions, read `<docs/INSTALL.rst>`_ .
|
||||||
|
|
||||||
Once ``tahoe --version`` works, see `<docs/running.rst>`_ to learn how to set
|
Once ``tahoe --version`` works, see `<docs/running.rst>`_ to learn how to set
|
||||||
|
16
tox.ini
16
tox.ini
@ -8,14 +8,14 @@ envlist = py27
|
|||||||
minversion = 1.7
|
minversion = 1.7
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = USERPROFILE HOMEDRIVE HOMEPATH
|
passenv = TAHOE_LAFS_TRIAL_ARGS USERPROFILE HOMEDRIVE HOMEPATH
|
||||||
# the default install is non-(--editable), and would displace our -e .[test]
|
# the default install is non-(--editable), and would displace our -e .[test]
|
||||||
skip_install = True
|
skip_install = True
|
||||||
deps = --editable=.[test]
|
deps = --editable=.[test]
|
||||||
commands =
|
commands =
|
||||||
pyflakes src static misc setup.py
|
pyflakes src static misc setup.py
|
||||||
tahoe --version
|
tahoe --version
|
||||||
trial --rterrors {posargs:allmydata}
|
trial {env:TAHOE_LAFS_TRIAL_ARGS:--rterrors} {posargs:allmydata}
|
||||||
|
|
||||||
[testenv:integration]
|
[testenv:integration]
|
||||||
commands =
|
commands =
|
||||||
@ -24,13 +24,13 @@ commands =
|
|||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
# coverage (with --branch) takes about 65% longer to run
|
# coverage (with --branch) takes about 65% longer to run
|
||||||
passenv = USERPROFILE HOMEDRIVE HOMEPATH
|
passenv = TAHOE_LAFS_TRIAL_ARGS USERPROFILE HOMEDRIVE HOMEPATH
|
||||||
skip_install = True
|
skip_install = True
|
||||||
deps = --editable=.[test]
|
deps = --editable=.[test]
|
||||||
commands =
|
commands =
|
||||||
pyflakes src static misc setup.py
|
pyflakes src static misc setup.py
|
||||||
tahoe --version
|
tahoe --version
|
||||||
coverage run --branch -m allmydata.test.run_trial --rterrors --reporter=timing {posargs:allmydata}
|
coverage run --branch -m allmydata.test.run_trial {env:TAHOE_LAFS_TRIAL_ARGS:--rterrors --reporter=timing} {posargs:allmydata}
|
||||||
coverage xml
|
coverage xml
|
||||||
|
|
||||||
[testenv:codechecks]
|
[testenv:codechecks]
|
||||||
@ -49,17 +49,17 @@ commands =
|
|||||||
|
|
||||||
[testenv:deprecations]
|
[testenv:deprecations]
|
||||||
basepython=python2.7
|
basepython=python2.7
|
||||||
passenv = USERPROFILE HOMEDRIVE HOMEPATH
|
passenv = TAHOE_LAFS_TRIAL_ARGS USERPROFILE HOMEDRIVE HOMEPATH
|
||||||
skip_install = True
|
skip_install = True
|
||||||
deps = --editable=.[test]
|
deps = --editable=.[test]
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONWARNINGS=default::DeprecationWarning
|
PYTHONWARNINGS=default::DeprecationWarning
|
||||||
commands =
|
commands =
|
||||||
python misc/build_helpers/run-deprecations.py --warnings=_trial_temp/deprecation-warnings.log trial --rterrors {posargs:allmydata}
|
python misc/build_helpers/run-deprecations.py --warnings=_trial_temp/deprecation-warnings.log trial {env:TAHOE_LAFS_TRIAL_ARGS:--rterrors} {posargs:allmydata}
|
||||||
|
|
||||||
[testenv:upcoming-deprecations]
|
[testenv:upcoming-deprecations]
|
||||||
basepython=python2.7
|
basepython=python2.7
|
||||||
passenv = USERPROFILE HOMEDRIVE HOMEPATH
|
passenv = TAHOE_LAFS_TRIAL_ARGS USERPROFILE HOMEDRIVE HOMEPATH
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONWARNINGS=default::DeprecationWarning
|
PYTHONWARNINGS=default::DeprecationWarning
|
||||||
skip_install = True
|
skip_install = True
|
||||||
@ -69,7 +69,7 @@ deps =
|
|||||||
git+https://github.com/warner/foolscap
|
git+https://github.com/warner/foolscap
|
||||||
commands =
|
commands =
|
||||||
flogtool --version
|
flogtool --version
|
||||||
python misc/build_helpers/run-deprecations.py --warnings=_trial_temp/deprecation-warnings.log trial --rterrors {posargs:allmydata}
|
python misc/build_helpers/run-deprecations.py --warnings=_trial_temp/deprecation-warnings.log trial {env:TAHOE_LAFS_TRIAL_ARGS:--rterrors} {posargs:allmydata}
|
||||||
|
|
||||||
[testenv:checkmemory]
|
[testenv:checkmemory]
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user