mbox

[v8,0/1] Add DTS smoke tests

Message ID 20230717193705.26594-2-jspewock@iol.unh.edu (mailing list archive)
Headers

Message

Jeremy Spewock July 17, 2023, 7:33 p.m. UTC
  From: Jeremy Spewock <jspewock@iol.unh.edu>

Addresses comments on previous patch and allows for non-root users to
run DTS. To do this, a reference to the method for getting elevated
permissions was passed into the InteractiveShell. The only alternative
to this would be to build the arguments in OSSession which isn't ideal
because the arguments are of course app specific and it would be
preferred if the application would append it's arguments. Some comments to
ignore typing on these lines were added as recommended but the following
issue: https://github.com/python/mypy/issues/2427.

RFCs for this patch:
* v3: https://mails.dpdk.org/archives/dev/2023-June/269859.html
* v2: https://mails.dpdk.org/archives/dev/2023-May/267915.html
* v1: https://mails.dpdk.org/archives/dev/2023-April/266580.html

Previous patch:
* v1: https://mails.dpdk.org/archives/dev/2023-June/271309.html
* v2: https://mails.dpdk.org/archives/dev/2023-July/272833.html
* v3: https://mails.dpdk.org/archives/dev/2023-July/272930.html
* v4: https://mails.dpdk.org/archives/dev/2023-July/272964.html
* v5: https://mails.dpdk.org/archives/dev/2023-July/272983.html
* v6: https://mails.dpdk.org/archives/dev/2023-July/273019.html
* v7: https://mails.dpdk.org/archives/dev/2023-July/273028.html

Jeremy Spewock (1):
  dts: add smoke tests

 dts/conf.yaml                                 |  17 +-
 dts/framework/config/__init__.py              |  79 ++++++--
 dts/framework/config/conf_yaml_schema.json    | 142 ++++++++++++++-
 dts/framework/dts.py                          |  84 ++++++---
 dts/framework/exception.py                    |  12 ++
 dts/framework/remote_session/__init__.py      |  13 +-
 dts/framework/remote_session/os_session.py    |  48 ++++-
 dts/framework/remote_session/posix_session.py |  29 ++-
 .../remote_session/remote/__init__.py         |  10 ++
 .../remote/interactive_remote_session.py      |  82 +++++++++
 .../remote/interactive_shell.py               |  98 ++++++++++
 .../remote_session/remote/testpmd_shell.py    |  46 +++++
 dts/framework/test_result.py                  |  24 ++-
 dts/framework/test_suite.py                   |  10 +-
 dts/framework/testbed_model/node.py           |  43 ++++-
 dts/framework/testbed_model/sut_node.py       | 169 +++++++++++++-----
 dts/framework/utils.py                        |   3 +
 dts/tests/TestSuite_smoke_tests.py            | 114 ++++++++++++
 18 files changed, 931 insertions(+), 92 deletions(-)
 create mode 100644 dts/framework/remote_session/remote/interactive_remote_session.py
 create mode 100644 dts/framework/remote_session/remote/interactive_shell.py
 create mode 100644 dts/framework/remote_session/remote/testpmd_shell.py
 create mode 100644 dts/tests/TestSuite_smoke_tests.py