From: Jin Ling <jin.ling@intel.com>
To: dts@dpdk.org
Cc: Jin Ling <jin.ling@intel.com>
Subject: [DTS][PATCH V1 05/10] framework/dts: add global variables
Date: Sun, 16 Jul 2023 17:07:49 +0800 [thread overview]
Message-ID: <20230716090753.1590148-6-jin.ling@intel.com> (raw)
In-Reply-To: <20230716090753.1590148-1-jin.ling@intel.com>
add'test_mev','test_acc','queue_model','vport','rx_vport' to config datapath and
vport when executing cases.
Signed-off-by: Jin Ling <jin.ling@intel.com>
---
framework/dts.py | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/framework/dts.py b/framework/dts.py
index f540256d..45aa632d 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -145,10 +145,33 @@ def dts_parse_config(config, section):
dcf_mode = config.get(section, "dcf_mode").strip().lower()
except:
dcf_mode = ""
+ try:
+ test_mev = config.get(section, "test_mev").strip().lower()
+ except:
+ test_mev=""
+ try:
+ test_acc = config.get(section, "test_acc").strip().lower()
+ except:
+ test_acc=""
+ try :
+ queue_model = config.get(section, "queue_model").strip().lower()
+ except:
+ queue_model = ""
+ try :
+ vport = config.get(section, "vport").strip().lower()
+ except:
+ vport = ""
+ try :
+ rx_vport = config.get(section, "rx_vport").strip().lower()
+ except:
+ rx_vport = "0"
settings.save_global_setting(settings.DPDK_RXMODE_SETTING, rx_mode)
settings.save_global_setting(settings.DPDK_DCFMODE_SETTING, dcf_mode)
-
+ settings.save_global_setting(settings.DPDK_QUEUE_MODEL_SETTING, queue_model)
+ settings.save_global_setting(settings.DPDK_VPORT_SETTING, vport)
+ settings.save_global_setting(settings.DPDK_RX_VPORT_SETTING, rx_vport)
+ settings.save_global_setting(settings.DPDK_TEST_MEV_SETTING, test_mev)
suite_list_dedup = {}
## suite_list_dedup[suite_name] := { True | Set | ... }
## True := All Cases to Run
--
2.34.1
next prev parent reply other threads:[~2023-07-16 9:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-16 9:07 [DTS][PATCH V1 00/10] add functions to test MEV Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 01/10] conf/crbs.cfg: add parameters Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 02/10] execution.cfg: add parameters to choose datapath and create vport when running test scripts Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 03/10] framework/config: save the serial port connection info of imc and acc to the self.crb Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 04/10] framework/crb:modify code when pexpect contains '#', replace '#' with 'mev-acc' Jin Ling
2023-07-16 9:07 ` Jin Ling [this message]
2023-07-16 9:07 ` [DTS][PATCH V1 06/10] framework/dut: add new functions to set up test mev env Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 07/10] framework/pmd_output: optimize function start_testpmd Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 08/10] framework/project_dpdk: optimize code Jin Ling
2023-07-16 9:07 ` [DTS][PATCH V1 09/10] framework/settings: add drivers and NICs for mev Jin Ling
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=20230716090753.1590148-6-jin.ling@intel.com \
--to=jin.ling@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).