diff options
| author | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-03-31 17:57:07 +0200 |
| commit | c2bdd8f8d96bf5329672163cc0905a22589d26d3 (patch) | |
| tree | 76ce2d78c98a958f97dfb6128fee9c529a2a55aa /tox.ini | |
| parent | b255867dd3e05fff714c5d3325c02596bf5854c8 (diff) | |
New upstream version 20200227+py3+20200213upstream/20200227+py3+20200213
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 61 |
1 files changed, 61 insertions, 0 deletions
@@ -0,0 +1,61 @@ +[tox] +envlist = unit,driver,style,py3clean,py3unit,py3driver +skipsdist = True + +[testenv] +basepython = python2.7 +sitepackages = True +passenv = HOME +whitelist_externals = bash +deps = future + +[testenv:unit] +deps = + pytest + mox + mock + future + pytest-xdist +commands = + pytest --disable-warnings -v tests/unit {posargs} + python ./share/make_supported.py /dev/null + +[testenv:driver] +deps = + future + pytest + pytest-xdist +commands = + pytest --disable-warnings -v tests/test_drivers.py {posargs} + +[testenv:style] +deps = + pep8==1.6.2 + future +commands = + python ./tools/cpep8.py + +[textenv:py3clean] +commands = + py3clean chirp tests + +[testenv:py3unit] +basepython = python3 +sitepackages = False +setenv = + PYTHONPATH=../.. +deps = + -rrequirements.txt + -rtest-requirements.txt +commands = + pytest --disable-warnings -v tests/unit {posargs} + +[testenv:py3driver] +basepython = python3 +sitepackages = False +setenv = + PYTHONPATH=../.. + CHIRP_DEBUG=y +deps = {[testenv:py3unit]deps} +commands = + pytest --disable-warnings -v tests/test_drivers.py {posargs} |
