2017-10-12 03:37:37 +00:00
|
|
|
[tox]
|
2019-02-12 00:21:28 +00:00
|
|
|
envlist = unit,driver,style,py3clean,py3unit,py3driver
|
2019-02-11 22:04:07 +00:00
|
|
|
skipsdist = True
|
2017-10-12 03:37:37 +00:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
basepython = python2.7
|
|
|
|
sitepackages = True
|
2021-12-06 17:31:15 +00:00
|
|
|
passenv = HOME CHIRP_TESTS CHIRP_TESTIMG
|
2017-10-12 03:37:37 +00:00
|
|
|
whitelist_externals = bash
|
2019-07-12 02:32:29 +00:00
|
|
|
deps = future
|
2017-10-12 03:37:37 +00:00
|
|
|
|
|
|
|
[testenv:unit]
|
|
|
|
deps =
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest
|
2018-03-16 00:12:30 +00:00
|
|
|
mox
|
2018-08-08 14:30:15 +00:00
|
|
|
mock
|
2019-02-10 22:41:34 +00:00
|
|
|
future
|
2019-02-14 14:39:04 +00:00
|
|
|
pytest-xdist
|
2017-10-12 03:37:37 +00:00
|
|
|
commands =
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest --disable-warnings -v tests/unit {posargs}
|
2017-10-12 03:37:37 +00:00
|
|
|
python ./share/make_supported.py /dev/null
|
|
|
|
|
|
|
|
[testenv:driver]
|
2019-02-10 22:41:34 +00:00
|
|
|
deps =
|
|
|
|
future
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest
|
2019-02-14 14:39:04 +00:00
|
|
|
pytest-xdist
|
2017-10-12 03:37:37 +00:00
|
|
|
commands =
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest --disable-warnings -v tests/test_drivers.py {posargs}
|
2017-10-12 03:37:37 +00:00
|
|
|
|
|
|
|
[testenv:style]
|
2022-09-09 15:09:37 +00:00
|
|
|
basepython = python3
|
|
|
|
sitepackages = False
|
2017-10-12 03:37:37 +00:00
|
|
|
deps =
|
2022-09-09 15:09:37 +00:00
|
|
|
pep8
|
2019-07-12 02:32:29 +00:00
|
|
|
future
|
2017-10-12 03:37:37 +00:00
|
|
|
commands =
|
2022-09-09 15:09:37 +00:00
|
|
|
python3 ./tools/cpep8.py
|
2019-02-07 16:38:38 +00:00
|
|
|
|
2019-02-12 00:21:28 +00:00
|
|
|
[textenv:py3clean]
|
|
|
|
commands =
|
|
|
|
py3clean chirp tests
|
|
|
|
|
2019-02-09 20:36:04 +00:00
|
|
|
[testenv:py3unit]
|
2019-02-07 16:38:38 +00:00
|
|
|
basepython = python3
|
|
|
|
sitepackages = False
|
2019-02-08 21:15:09 +00:00
|
|
|
setenv =
|
|
|
|
PYTHONPATH=../..
|
2019-02-07 16:38:38 +00:00
|
|
|
deps =
|
|
|
|
-rrequirements.txt
|
2019-02-07 17:12:58 +00:00
|
|
|
-rtest-requirements.txt
|
2019-02-07 16:38:38 +00:00
|
|
|
commands =
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest --disable-warnings -v tests/unit {posargs}
|
2019-02-09 20:36:04 +00:00
|
|
|
|
|
|
|
[testenv:py3driver]
|
|
|
|
basepython = python3
|
|
|
|
sitepackages = False
|
|
|
|
setenv =
|
|
|
|
PYTHONPATH=../..
|
|
|
|
CHIRP_DEBUG=y
|
|
|
|
deps = {[testenv:py3unit]deps}
|
|
|
|
commands =
|
2019-02-14 00:53:28 +00:00
|
|
|
pytest --disable-warnings -v tests/test_drivers.py {posargs}
|