summaryrefslogtreecommitdiff
path: root/dts/framework/testbed_model/sut_node.py
diff options
context:
space:
mode:
authorJuraj Linkeš <[email protected]>2023-03-03 11:25:04 +0100
committerThomas Monjalon <[email protected]>2023-03-19 16:28:32 +0100
commit444833c07a3e691723f2c207f5896513ce70db80 (patch)
tree265141c548d3a4806be298152c6f45d6b0d8f7f4 /dts/framework/testbed_model/sut_node.py
parent6fc05ca7ee4ed2d0c167b1f6a9a1832a085ac40a (diff)
dts: add hello world test suite
The test suite implements test cases defined in the corresponding test plan. Signed-off-by: Juraj Linkeš <[email protected]> Tested-by: Bruce Richardson <[email protected]> Tested-by: Chenyu Huang <[email protected]> Tested-by: Patrick Robb <[email protected]>
Diffstat (limited to 'dts/framework/testbed_model/sut_node.py')
-rw-r--r--dts/framework/testbed_model/sut_node.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/dts/framework/testbed_model/sut_node.py b/dts/framework/testbed_model/sut_node.py
index 3672f5f6e5..2b2b50d982 100644
--- a/dts/framework/testbed_model/sut_node.py
+++ b/dts/framework/testbed_model/sut_node.py
@@ -8,7 +8,7 @@ import time
from pathlib import PurePath
from framework.config import BuildTargetConfiguration, NodeConfiguration
-from framework.remote_session import OSSession
+from framework.remote_session import CommandResult, OSSession
from framework.settings import SETTINGS
from framework.utils import EnvVarsDict, MesonArgs
@@ -252,6 +252,16 @@ class SutNode(Node):
other_eal_param=other_eal_param,
)
+ def run_dpdk_app(
+ self, app_path: PurePath, eal_args: "EalParameters", timeout: float = 30
+ ) -> CommandResult:
+ """
+ Run DPDK application on the remote node.
+ """
+ return self.main_session.send_command(
+ f"{app_path} {eal_args}", timeout, verify=True
+ )
+
class EalParameters(object):
def __init__(