test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode
@ 2020-07-21  6:19 Xie wei
  2020-07-21  6:19 ` Xie, WeiX
  2020-07-24  2:40 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xie wei @ 2020-07-21  6:19 UTC (permalink / raw)
  To: dts; +Cc: Xie wei

use conf/xxx.cfg mode load ice package.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 conf/cvl_advanced_iavf_rss_package.cfg   | 4 ++++
 tests/TestSuite_cvl_advanced_iavf_rss.py | 8 ++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 conf/cvl_advanced_iavf_rss_package.cfg

diff --git a/conf/cvl_advanced_iavf_rss_package.cfg b/conf/cvl_advanced_iavf_rss_package.cfg
new file mode 100644
index 0000000..228d481
--- /dev/null
+++ b/conf/cvl_advanced_iavf_rss_package.cfg
@@ -0,0 +1,4 @@
+[suite]
+# cvl_advanced_iavf_rss ice package file location
+os_default_package_file_location=/lib/firmware/updates/intel/ice/ddp/ice-1.3.13.0.pkg
+comms_package_file_location=/lib/firmware/updates/intel/ice/ddp/ice_comms-1.3.16.0.pkg
diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
index eaf55fa..349cb40 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -4,6 +4,7 @@ import time
 from packet import Packet
 from pmd_output import PmdOutput
 from test_case import TestCase
+from config import UserConf
 import rte_flow_common as rfc
 
 vf0_mac = "00:01:23:45:67:89"
@@ -735,8 +736,11 @@ class AdvancedIavfRSSTest(TestCase):
         self.pf_pci = self.dut.ports_info[self.dut_ports[0]]['pci']
         self.verify(self.nic in ["columbiaville_25g", "columbiaville_100g"], "%s nic not support ethertype filter" % self.nic)
         self.ddp_fdir = "/lib/firmware/updates/intel/ice/ddp/"
-        self.os_pkg_name = "ice-1.3.11.0.pkg"
-        self.comms_pkg_name = "ice_comms-1.3.16.0.pkg"
+        conf_file = 'conf/cvl_advanced_iavf_rss_package.cfg'
+        conf_info = UserConf(conf_file)
+        conf_section = conf_info.conf._sections['suite']
+        self.os_pkg_name = conf_section['os_default_package_file_location']
+        self.comms_pkg_name = conf_section['comms_package_file_location']
         self.vf_flag = False
         self.create_iavf()
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode
  2020-07-21  6:19 [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode Xie wei
@ 2020-07-21  6:19 ` Xie, WeiX
  2020-07-24  2:40 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Xie, WeiX @ 2020-07-21  6:19 UTC (permalink / raw)
  To: dts

[-- Attachment #1: Type: text/plain, Size: 2345 bytes --]

Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


-----Original Message-----
From: Xie, WeiX 
Sent: Tuesday, July 21, 2020 2:19 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts][PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode

use conf/xxx.cfg mode load ice package.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 conf/cvl_advanced_iavf_rss_package.cfg   | 4 ++++
 tests/TestSuite_cvl_advanced_iavf_rss.py | 8 ++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)  create mode 100644 conf/cvl_advanced_iavf_rss_package.cfg

diff --git a/conf/cvl_advanced_iavf_rss_package.cfg b/conf/cvl_advanced_iavf_rss_package.cfg
new file mode 100644
index 0000000..228d481
--- /dev/null
+++ b/conf/cvl_advanced_iavf_rss_package.cfg
@@ -0,0 +1,4 @@
+[suite]
+# cvl_advanced_iavf_rss ice package file location 
+os_default_package_file_location=/lib/firmware/updates/intel/ice/ddp/ic
+e-1.3.13.0.pkg 
+comms_package_file_location=/lib/firmware/updates/intel/ice/ddp/ice_com
+ms-1.3.16.0.pkg
diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py b/tests/TestSuite_cvl_advanced_iavf_rss.py
index eaf55fa..349cb40 100644
--- a/tests/TestSuite_cvl_advanced_iavf_rss.py
+++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
@@ -4,6 +4,7 @@ import time
 from packet import Packet
 from pmd_output import PmdOutput
 from test_case import TestCase
+from config import UserConf
 import rte_flow_common as rfc
 
 vf0_mac = "00:01:23:45:67:89"
@@ -735,8 +736,11 @@ class AdvancedIavfRSSTest(TestCase):
         self.pf_pci = self.dut.ports_info[self.dut_ports[0]]['pci']
         self.verify(self.nic in ["columbiaville_25g", "columbiaville_100g"], "%s nic not support ethertype filter" % self.nic)
         self.ddp_fdir = "/lib/firmware/updates/intel/ice/ddp/"
-        self.os_pkg_name = "ice-1.3.11.0.pkg"
-        self.comms_pkg_name = "ice_comms-1.3.16.0.pkg"
+        conf_file = 'conf/cvl_advanced_iavf_rss_package.cfg'
+        conf_info = UserConf(conf_file)
+        conf_section = conf_info.conf._sections['suite']
+        self.os_pkg_name = conf_section['os_default_package_file_location']
+        self.comms_pkg_name = 
+ conf_section['comms_package_file_location']
         self.vf_flag = False
         self.create_iavf()
 
--
2.17.1


[-- Attachment #2: AdvancedIavfRSSTest.log --]
[-- Type: application/octet-stream, Size: 10383 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode
  2020-07-21  6:19 [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode Xie wei
  2020-07-21  6:19 ` Xie, WeiX
@ 2020-07-24  2:40 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-07-24  2:40 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie wei
> Sent: 2020^[$BG/^[(B7^[$B7n^[(B21^[$BF|^[(B 14:19
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package
> mode
> 
> use conf/xxx.cfg mode load ice package.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>
> ---
>  conf/cvl_advanced_iavf_rss_package.cfg   | 4 ++++
>  tests/TestSuite_cvl_advanced_iavf_rss.py | 8 ++++++--
>  2 files changed, 10 insertions(+), 2 deletions(-)  create mode 100644
> conf/cvl_advanced_iavf_rss_package.cfg
> 
> diff --git a/conf/cvl_advanced_iavf_rss_package.cfg
> b/conf/cvl_advanced_iavf_rss_package.cfg
> new file mode 100644
> index 0000000..228d481
> --- /dev/null
> +++ b/conf/cvl_advanced_iavf_rss_package.cfg
> @@ -0,0 +1,4 @@
> +[suite]
> +# cvl_advanced_iavf_rss ice package file location
> +os_default_package_file_location=/lib/firmware/updates/intel/ice/ddp/ic
> +e-1.3.13.0.pkg
> +comms_package_file_location=/lib/firmware/updates/intel/ice/ddp/ice_com
> +ms-1.3.16.0.pkg
> diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py
> b/tests/TestSuite_cvl_advanced_iavf_rss.py
> index eaf55fa..349cb40 100644
> --- a/tests/TestSuite_cvl_advanced_iavf_rss.py
> +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
> @@ -4,6 +4,7 @@ import time
>  from packet import Packet
>  from pmd_output import PmdOutput
>  from test_case import TestCase
> +from config import UserConf
>  import rte_flow_common as rfc
> 
>  vf0_mac = "00:01:23:45:67:89"
> @@ -735,8 +736,11 @@ class AdvancedIavfRSSTest(TestCase):
>          self.pf_pci = self.dut.ports_info[self.dut_ports[0]]['pci']
>          self.verify(self.nic in ["columbiaville_25g", "columbiaville_100g"], "%s nic
> not support ethertype filter" % self.nic)
>          self.ddp_fdir = "/lib/firmware/updates/intel/ice/ddp/"
> -        self.os_pkg_name = "ice-1.3.11.0.pkg"
> -        self.comms_pkg_name = "ice_comms-1.3.16.0.pkg"
> +        conf_file = 'conf/cvl_advanced_iavf_rss_package.cfg'
> +        conf_info = UserConf(conf_file)
> +        conf_section = conf_info.conf._sections['suite']
> +        self.os_pkg_name = conf_section['os_default_package_file_location']
> +        self.comms_pkg_name =
> + conf_section['comms_package_file_location']
>          self.vf_flag = False
>          self.create_iavf()
> 
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  6:19 [dts] [PATCH V1] tests/cvl_advanced_iavf_rss:change load ice package mode Xie wei
2020-07-21  6:19 ` Xie, WeiX
2020-07-24  2:40 ` Tu, Lijuan

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox