diff mbox series

[v1,8/8] dts: add main script for running dts

Message ID 20220622121448.3304251-9-juraj.linkes@pantheon.tech (mailing list archive)
State New
Delegated to: Thomas Monjalon
Headers show
Series dts: ssh connection to a node | expand

Checks

Context Check Description
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-abi-testing warning Testing issues
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-aarch64-compile-testing success Testing PASS
ci/checkpatch success coding style OK

Commit Message

Juraj Linkeš June 22, 2022, 12:14 p.m. UTC
The script is an interface to run DTS with standard argument parser.

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
 dts/main.py | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100755 dts/main.py
diff mbox series

Patch

diff --git a/dts/main.py b/dts/main.py
new file mode 100755
index 0000000000..af1f5e4d01
--- /dev/null
+++ b/dts/main.py
@@ -0,0 +1,36 @@ 
+#!/usr/bin/env python3
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2010-2014 Intel Corporation
+#
+
+"""
+A test framework for testing DPDK.
+"""
+
+import argparse
+
+from framework import dts
+
+# Read cmd-line args
+parser = argparse.ArgumentParser(description="DPDK test framework.")
+
+parser.add_argument(
+    "--config-file",
+    default="execution.cfg",
+    help="configuration file that describes the test " + "cases, SUTs and targets",
+)
+
+parser.add_argument(
+    "-v",
+    "--verbose",
+    action="store_true",
+    help="enable verbose output, all message output on screen",
+)
+
+args = parser.parse_args()
+
+# Main program begins here
+dts.run_all(
+    args.config_file,
+    args.verbose,
+)