2015-07-13 16:45:49 +00:00
|
|
|
# tox configuration - if you change anything here, run this to verify:
|
|
|
|
# fakeroot -u tox --recreate
|
|
|
|
#
|
|
|
|
# Invokation examples:
|
|
|
|
# fakeroot -u tox # run all tests
|
|
|
|
# fakeroot -u tox -e py32 # run all tests, but only on python 3.2
|
|
|
|
# fakeroot -u tox borg.testsuite.locking # only run 1 test module
|
|
|
|
# fakeroot -u tox borg.testsuite.locking -- -k '"not Timer"' # exclude some tests
|
|
|
|
# fakeroot -u tox borg.testsuite -- -v # verbose py.test
|
|
|
|
#
|
|
|
|
# Important notes:
|
|
|
|
# Without fakeroot -u some tests will fail.
|
|
|
|
# When using -- to give options to py.test, you MUST also give borg.testsuite[.module].
|
|
|
|
|
2013-06-24 11:53:02 +00:00
|
|
|
[tox]
|
2014-05-03 12:21:10 +00:00
|
|
|
envlist = py32, py33, py34
|
2013-06-24 11:53:02 +00:00
|
|
|
|
|
|
|
[testenv]
|
2015-07-13 16:45:49 +00:00
|
|
|
# Change dir to avoid import problem for cython code. The directory does
|
|
|
|
# not really matter, should be just different from the toplevel dir.
|
|
|
|
changedir = {toxworkdir}
|
2015-05-22 18:23:37 +00:00
|
|
|
deps =
|
|
|
|
pytest
|
2015-07-12 21:08:44 +00:00
|
|
|
mock
|
2015-07-13 16:45:49 +00:00
|
|
|
commands = py.test --pyargs {posargs:borg.testsuite}
|
|
|
|
# fakeroot -u needs some env vars:
|
|
|
|
passenv = *
|