test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf
@ 2020-09-24  9:12 xizhan4x
  2020-09-24  9:17 ` Zhang, XiX
  2020-09-29  5:21 ` Ma, LihongX
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-09-24  9:12 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

insmod igb_uio create vf 

Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_qinq_filter.py | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_qinq_filter.py b/tests/TestSuite_qinq_filter.py
index 086abc1..a629f0e 100644
--- a/tests/TestSuite_qinq_filter.py
+++ b/tests/TestSuite_qinq_filter.py
@@ -192,11 +192,27 @@ class TestQinqFilter(TestCase):
         self.verify('queue 2: received 1 packets' in out, "out vlan 1, inner vlan 4093 received not by queue 2 : %s" % out)
         
         self.dut.send_expect("quit", "#")
-        
+
+    def insmod_modprobe(self, modename=''):
+        """
+        Insmod modProbe before run test case
+        """
+        if modename == "igb_uio":
+            self.dut.send_expect("modprobe uio", "#", 10)
+            out = self.dut.send_expect("lsmod | grep igb_uio", "#")
+            if "igb_uio" in out:
+                self.dut.send_expect("rmmod -f igb_uio", "#", 10)
+            self.dut.send_expect("insmod ./" + self.target + "/kmod/igb_uio.ko", "#", 10)
+
+            out = self.dut.send_expect("lsmod | grep igb_uio", "#")
+            assert ("igb_uio" in out), "Failed to insmod igb_uio"       
+
+ 
     def test_qinq_packet_filter_VF_queues(self):
         """
         qinq filter packet received by assign VF queues
         """
+        self.insmod_modprobe("igb_uio")
         self.config_vfs(dutRxPortId, 2)
         vf_list = self.dut.ports_info[dutRxPortId]['sriov_vfs_pci']
         self.verify(len(vf_list) == 2, 'config 2 vf failed: %s' % str(vf_list))
-- 
1.8.3.1


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

* Re: [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf
  2020-09-24  9:12 [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf xizhan4x
@ 2020-09-24  9:17 ` Zhang, XiX
  2020-09-29  5:21 ` Ma, LihongX
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, XiX @ 2020-09-24  9:17 UTC (permalink / raw)
  To: dts

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

Tested-by: Zhang, XiX <xix.zhang@intel.com>

Regards,
Zhang, Xi

> -----Original Message-----
> From: Zhang, XiX
> Sent: Thursday, September 24, 2020 5:13 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf


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

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

* Re: [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf
  2020-09-24  9:12 [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf xizhan4x
  2020-09-24  9:17 ` Zhang, XiX
@ 2020-09-29  5:21 ` Ma, LihongX
  1 sibling, 0 replies; 3+ messages in thread
From: Ma, LihongX @ 2020-09-29  5:21 UTC (permalink / raw)
  To: Zhang, XiX, dts; +Cc: Zhang, XiX


> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of xizhan4x
> Sent: Thursday, September 24, 2020 5:13 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create
> vf
> 
> insmod igb_uio create vf
> 
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
>  tests/TestSuite_qinq_filter.py | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_qinq_filter.py
> b/tests/TestSuite_qinq_filter.py index 086abc1..a629f0e 100644
> --- a/tests/TestSuite_qinq_filter.py
> +++ b/tests/TestSuite_qinq_filter.py
> @@ -192,11 +192,27 @@ class TestQinqFilter(TestCase):
>          self.verify('queue 2: received 1 packets' in out, "out vlan 1,
> inner vlan 4093 received not by queue 2 : %s" % out)
> 
>          self.dut.send_expect("quit", "#")
> -
> +
> +    def insmod_modprobe(self, modename=''):
> +        """
> +        Insmod modProbe before run test case
> +        """
> +        if modename == "igb_uio":
> +            self.dut.send_expect("modprobe uio", "#", 10)
> +            out = self.dut.send_expect("lsmod | grep igb_uio", "#")
> +            if "igb_uio" in out:
> +                self.dut.send_expect("rmmod -f igb_uio", "#", 10)
> +            self.dut.send_expect("insmod ./" + self.target +
> + "/kmod/igb_uio.ko", "#", 10)
> +
> +            out = self.dut.send_expect("lsmod | grep igb_uio", "#")
> +            assert ("igb_uio" in out), "Failed to insmod igb_uio"
> +
> +

Why it must re-insmod the driver, I think the framework have done the work of insmod before run cases.

Regards,
Ma,lihong

^ 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-09-24  9:12 [dts] [PATCH V1] tests/TestSuite_qinq_filter:insmod igb_uio create vf xizhan4x
2020-09-24  9:17 ` Zhang, XiX
2020-09-29  5:21 ` Ma, LihongX

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