mirror of
https://github.com/SELinuxProject/setools
synced 2025-02-06 15:11:32 +00:00
tox.ini: Add gui unit tests target
Fix main unit tests to use envpython explicitly. Signed-off-by: Chris PeBenito <pebenito@ieee.org>
This commit is contained in:
parent
769d773ef0
commit
3c2254c335
27
tox.ini
27
tox.ini
@ -9,7 +9,7 @@ max-line-length = 100
|
|||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
pycodestyle
|
pycodestyle
|
||||||
commands_pre = pycodestyle --version
|
commands_pre = pycodestyle --version
|
||||||
commands = pycodestyle setools/ setoolsgui/ tests/ seinfo seinfoflow sedta sesearch sediff sechecker apol --statistics
|
commands = pycodestyle setools/ setoolsgui/ tests/ tests-gui/ seinfo seinfoflow sedta sesearch sediff sechecker apol --statistics
|
||||||
|
|
||||||
[testenv:coverage]
|
[testenv:coverage]
|
||||||
setenv = SETOOLS_COVERAGE = 1
|
setenv = SETOOLS_COVERAGE = 1
|
||||||
@ -26,9 +26,10 @@ commands = coverage run -m pytest tests
|
|||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
pylint>=2.8.0
|
pylint>=2.8.0
|
||||||
PyQt5>=5.15.0
|
PyQt5>=5.15.0
|
||||||
|
pytest-qt
|
||||||
commands_pre = pylint --version
|
commands_pre = pylint --version
|
||||||
{envpython} setup.py build_ext -i
|
{envpython} setup.py build_ext -i
|
||||||
commands = pylint -E setools setoolsgui tests seinfo seinfoflow sedta sesearch sediff sechecker apol
|
commands = pylint -E setools setoolsgui tests tests-gui seinfo seinfoflow sedta sesearch sediff sechecker apol
|
||||||
|
|
||||||
[testenv:mypy]
|
[testenv:mypy]
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
@ -36,20 +37,22 @@ deps = {[testenv]deps}
|
|||||||
PyQt5>=5.15.0
|
PyQt5>=5.15.0
|
||||||
mypy
|
mypy
|
||||||
commands_pre = mypy --version
|
commands_pre = mypy --version
|
||||||
commands = mypy -p setools
|
commands = mypy -p setools -p setoolsgui -p tests -p tests-gui
|
||||||
mypy -p setoolsgui
|
mypy --scripts-are-modules seinfo seinfoflow sedta sesearch sediff sechecker apol
|
||||||
mypy seinfo
|
|
||||||
mypy seinfoflow
|
|
||||||
mypy sedta
|
|
||||||
mypy sesearch
|
|
||||||
mypy sediff
|
|
||||||
mypy sechecker
|
|
||||||
mypy apol
|
|
||||||
|
|
||||||
[testenv:install]
|
[testenv:install]
|
||||||
deps = {[testenv]deps}
|
deps = {[testenv]deps}
|
||||||
commands = {envpython} -m pip install --use-pep517 .
|
commands = {envpython} -m pip install --use-pep517 .
|
||||||
|
|
||||||
|
[testenv:gui]
|
||||||
|
passenv = DISPLAY
|
||||||
|
XAUTHORITY
|
||||||
|
deps = {[testenv]deps}
|
||||||
|
PyQt5>=5.15.0
|
||||||
|
pytest-qt
|
||||||
|
pytest-xvfb
|
||||||
|
commands = {envpython} -m pytest tests-gui
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
passenv = USERSPACE_SRC
|
passenv = USERSPACE_SRC
|
||||||
deps = networkx>=2.0
|
deps = networkx>=2.0
|
||||||
@ -60,4 +63,4 @@ deps = networkx>=2.0
|
|||||||
python3.10: networkx>=2.6
|
python3.10: networkx>=2.6
|
||||||
python3.11: networkx>=2.6
|
python3.11: networkx>=2.6
|
||||||
commands_pre = {envpython} setup.py build_ext -i
|
commands_pre = {envpython} setup.py build_ext -i
|
||||||
commands = pytest tests
|
commands = {envpython} -m pytest tests
|
||||||
|
Loading…
Reference in New Issue
Block a user