Files
ptp-notification-armada-app/tox.ini
Eduardo Alberti e33ae7c63e Replacing sysfs by Netlink in CGU calls
This commit changes the mechanism used to retrieve CGU information
replacing the explicit access of sysfs file by Netlink sockets.
The usage of Netlink grant access to the DPLL information, what meet
the GNR-D requirements.

In consequence, and to allow reuse of the Netlink library, the image
builder mechanism was changed from docker to Loci in the notification
service.

TEST PLAN:
PASS: Successful build image with Loci framework.
PASS: Successful upload and install application.
PASS: Successful overwriting of values/parameters and re-application of
      the application.
PASS: Successful deletion and removal of the application.
PASS: Synchronized status with Netlink DPLL base information.

Story: 2011345
Task: 51689

Depends-On: https://review.opendev.org/c/starlingx/integ/+/940120

Change-Id: Ibaf50073062305e09f60f00ca7486cea4f794cf1
Signed-off-by: Eduardo Alberti <eduardo.alberti@windriver.com>
Signed-off-by: Andre Mauricio Zelak <andre.zelak@windriver.com>
2025-06-16 16:04:16 +00:00

84 lines
2.4 KiB
INI

[tox]
envlist = linters #,py39
minversion = 2.3
skipsdist = True
stxdir = {toxinidir}/..
[testenv]
install_command = pip install -U \
{opts} {packages} \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt}
setenv =
VIRTUAL_ENV={envdir}
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_DEBUG=1
OS_LOG_CAPTURE=1
deps =
-r{toxinidir}/test-requirements.txt
allowlist_externals =
bash
# TODO: Enable testenv when possible
# Considering the incompatibility between python and the system with dpll
# capability in the current environment, the job is disabled for now.
#[testenv:py39]
#usedevelop = True
#setenv =
# TESTPATH=./notificationservice-base-v2/ptptrackingfunction/trackingfunctionsdk/tests/
#commands =
# unit2 discover -s ./notificationservice-base-v2/ptptrackingfunction
#deps =
# -r{toxinidir}/test-requirements.txt
# -e{[tox]stxdir}/integ/python/pynetlink/src
[testenv:bashate]
basepython = python3
# Treat all E* codes as Errors rather than warnings using: -e 'E*'
commands =
bash -c "find {toxinidir} \
-not \( -type d -name .?\* -prune \) \
-type f \
-not -name \*~ \
-not -name \*.md \
-name \*.sh \
-print0 | xargs -r -n 1 -0 bashate -v \
-e 'E*'"
[testenv:linters]
basepython = python3
commands =
{[testenv:bashate]commands}
[testenv:docs]
basepython = python3
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
allowlist_externals = rm
[testenv:api-ref]
basepython = python3
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
allowlist_externals = rm
[testenv:pylint]
basepython = python3
description = Dummy environment to allow pylint to be run in subdir tox
[testenv:flake8]
basepython = python3
description = Dummy environment to allow flake8 to be run in subdir tox
[testenv:metadata]
basepython = python3
description = Dummy environment to allow sysinv-app to be run in subdir tox