test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts][PATCH V6 1/3] framework/*:add config dcf mode in execution file
Date: Fri,  7 Oct 2022 08:31:35 +0800	[thread overview]
Message-ID: <20221007003137.12787-2-zhiminx.huang@intel.com> (raw)
In-Reply-To: <20221007003137.12787-1-zhiminx.huang@intel.com>

add dcf_mode parm into execution file configuration
to support start testpmd with dcf.
if take dcf mode,add dcf_mode=enable into execution.cfg.

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
Acked-by: Xueqin Lin <xueqin.lin@intel.com>
---
v6:
-optimize test script and testplan

v5:
-add more comments

 framework/dts.py      | 6 ++++++
 framework/settings.py | 1 +
 2 files changed, 7 insertions(+)

diff --git a/framework/dts.py b/framework/dts.py
index a894c461..a8e670b5 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -141,7 +141,13 @@ def dts_parse_config(config, section):
     except:
         rx_mode = "default"
 
+    try:
+        dcf_mode = config.get(section, "dcf_mode").strip().lower()
+    except:
+        dcf_mode = ""
+
     settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode)
+    settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode)
 
     for suite in test_suites:
         if suite == "":
diff --git a/framework/settings.py b/framework/settings.py
index 2e7bcfa5..65029668 100644
--- a/framework/settings.py
+++ b/framework/settings.py
@@ -235,6 +235,7 @@ HOST_SHARED_LIB_PATH = "DTS_HOST_SHARED_LIB_PATH"
 DEBUG_SETTING = "DTS_DEBUG_ENABLE"
 DEBUG_CASE_SETTING = "DTS_DEBUGCASE_ENABLE"
 DPDK_RXMODE_SETTING = "DTS_DPDK_RXMODE"
+DPDK_DCFMODE_SETTING = "DTS_DPDK_DCFMODE"
 DTS_ERROR_ENV = "DTS_RUNNING_ERROR"
 DTS_CFG_FOLDER = "DTS_CFG_FOLDER"
 DTS_PARALLEL_SETTING = "DTS_PARALLEL_ENABLE"
-- 
2.17.1


  reply	other threads:[~2022-10-06 16:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-07  0:31 [dts][PATCH V6 0/3] modify cases to check dcf as a full feature pmd Zhimin Huang
2022-10-07  0:31 ` Zhimin Huang [this message]
2022-10-07  0:31 ` [dts][PATCH V6 2/3] test_plans/*:modify " Zhimin Huang
2022-10-07  0:31 ` [dts][PATCH V6 3/3] tests/*:modify " Zhimin Huang
2022-10-08  5:37   ` lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221007003137.12787-2-zhiminx.huang@intel.com \
    --to=zhiminx.huang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).