mirror of
https://github.com/kk7ds/chirp.git
synced 2024-09-21 10:37:15 +00:00
3792acf9dc
This looks like a lot of change, but it was pretty trivial. Many
of the conflicts came from d40963b3ed
which fixed a bunch of typos. There were some test adapter changes,
some GTK UI fixes, RR canada additions, and the usual driver
maintenance.
I didn't test the GTK UI since it seems like we're abandoning keeping
that working in python2 or python3 with pygobject (which is fine).
64 lines
1.1 KiB
INI
64 lines
1.1 KiB
INI
[tox]
|
|
envlist = unit,driver,style,py3clean,py3unit,py3driver
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python2.7
|
|
sitepackages = True
|
|
passenv = HOME CHIRP_TESTS CHIRP_TESTIMG
|
|
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]
|
|
basepython = python3
|
|
sitepackages = False
|
|
deps =
|
|
pep8
|
|
future
|
|
commands =
|
|
python3 ./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}
|