test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf
@ 2016-03-21 10:34 Yulong Pei
  2016-03-22  7:24 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: Yulong Pei @ 2016-03-21 10:34 UTC (permalink / raw)
  To: dts; +Cc: Yulong Pei

Signed-off-by: Yulong Pei <yulong.pei@intel.com>
---
 tests/TestSuite_vf_packet_rxtx.py | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
index a632a44..599bc8d 100644
--- a/tests/TestSuite_vf_packet_rxtx.py
+++ b/tests/TestSuite_vf_packet_rxtx.py
@@ -100,11 +100,13 @@ class TestVfPacketRxtx(TestCase):
 
         self.setup_2pf_2vf_1vm_env_flag = 0
 
-######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
 
-    def test_kernel_2pf_2vf_1vm(self):
+    def packet_rx_tx(self, driver='default'):
 
-        self.setup_2pf_2vf_1vm_env(driver='')
+        if driver == 'igb_uio':
+            self.setup_2pf_2vf_1vm_env(driver='igb_uio')
+        else:
+            self.setup_2pf_2vf_1vm_env(driver='')
 
         self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
         port_id_0 = 0
@@ -133,6 +135,17 @@ class TestVfPacketRxtx(TestCase):
         result = self.tester.check_random_pkts(tgen_ports, allow_miss=False, params=pkt_param)
         self.verify(result != False, "VF0 failed to forward packets to VF1")
 
+
+######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
+    def test_kernel_2pf_2vf_1vm(self):
+
+        self.packet_rx_tx(driver='')
+
+######2. test case for dpdk pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
+    def test_dpdk_2pf_2vf_1vm(self):
+
+        self.packet_rx_tx(driver='igb_uio')
+
     def setup_3vf_2vm_env(self, driver='default'):
 
         self.used_dut_port = self.dut_ports[0]
-- 
2.1.0

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

* Re: [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf
  2016-03-21 10:34 [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf Yulong Pei
@ 2016-03-22  7:24 ` Liu, Yong
  0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-03-22  7:24 UTC (permalink / raw)
  To: Yulong Pei, dts

Applied. Thanks.

On 03/21/2016 06:34 PM, Yulong Pei wrote:
> Signed-off-by: Yulong Pei <yulong.pei@intel.com>
> ---
>   tests/TestSuite_vf_packet_rxtx.py | 19 ++++++++++++++++---
>   1 file changed, 16 insertions(+), 3 deletions(-)
>
> diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py
> index a632a44..599bc8d 100644
> --- a/tests/TestSuite_vf_packet_rxtx.py
> +++ b/tests/TestSuite_vf_packet_rxtx.py
> @@ -100,11 +100,13 @@ class TestVfPacketRxtx(TestCase):
>   
>           self.setup_2pf_2vf_1vm_env_flag = 0
>   
> -######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
>   
> -    def test_kernel_2pf_2vf_1vm(self):
> +    def packet_rx_tx(self, driver='default'):
>   
> -        self.setup_2pf_2vf_1vm_env(driver='')
> +        if driver == 'igb_uio':
> +            self.setup_2pf_2vf_1vm_env(driver='igb_uio')
> +        else:
> +            self.setup_2pf_2vf_1vm_env(driver='')
>   
>           self.vm0_dut_ports = self.vm_dut_0.get_ports('any')
>           port_id_0 = 0
> @@ -133,6 +135,17 @@ class TestVfPacketRxtx(TestCase):
>           result = self.tester.check_random_pkts(tgen_ports, allow_miss=False, params=pkt_param)
>           self.verify(result != False, "VF0 failed to forward packets to VF1")
>   
> +
> +######1. test case for kernel pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
> +    def test_kernel_2pf_2vf_1vm(self):
> +
> +        self.packet_rx_tx(driver='')
> +
> +######2. test case for dpdk pf and dpdk vf 2pf_2vf_1vm scenario packet rx tx.
> +    def test_dpdk_2pf_2vf_1vm(self):
> +
> +        self.packet_rx_tx(driver='igb_uio')
> +
>       def setup_3vf_2vm_env(self, driver='default'):
>   
>           self.used_dut_port = self.dut_ports[0]

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

end of thread, other threads:[~2016-03-22  7:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-21 10:34 [dts] [PATCH] tests: add packet rxtx test case for dpdk pf and dpdk vf Yulong Pei
2016-03-22  7:24 ` Liu, Yong

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).