test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst
@ 2019-02-15  9:37 Peng Yuan
  2019-02-26  3:24 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: Peng Yuan @ 2019-02-15  9:37 UTC (permalink / raw)
  To: dts; +Cc: Peng Yuan

Sync case to floating_veb_test_plan.rst

Signed-off-by: Peng Yuan <yuan.peng@intel.com>

diff --git a/tests/TestSuite_floating_veb.py b/tests/TestSuite_floating_veb.py
index bf26f18..d5b2610 100644
--- a/tests/TestSuite_floating_veb.py
+++ b/tests/TestSuite_floating_veb.py
@@ -256,12 +256,15 @@ class TestVEBSwitching(TestCase):
         pf_tx_stats = self.veb_get_pmd_stats("first", 0, "tx")
         self.verify(pf_tx_stats[0] != 0, "no packet was sent by PF")
         self.verify(vf0_rx_stats[0] == 0, "VF0 can receive packet from PF, the floating VEB doesn't work")
-        self.session_secondary.send_expect("quit", "# ")
-        time.sleep(2)
-        self.dut.send_expect("quit", "# ")
-        time.sleep(2)
 
+    def test_floating_VEB_inter_tester_vf(self):
+        """
+        DPDK PF, then create 1VF, PF in the host running dpdk testpmd,
+        send traffic from tester to VF0.
+        In floating modeVF0 can't receive any packets;
+        """
         #outside world ->VF
+        self.setup_env(driver=self.drivername, vf_num=1)
         self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem 1024,1024 -w %s,enable_floating_veb=1 --file-prefix=test1 -- -i --eth-peer=0,%s" % (self.target, self.pf_pci, self.vf0_mac), "testpmd>", 120)
         self.dut.send_expect("set fwd mac", "testpmd>")
         self.dut.send_expect("set promisc all on", "testpmd>")
@@ -532,7 +535,7 @@ class TestVEBSwitching(TestCase):
 
         self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n 4 --socket-mem 1024,1024 -w %s --file-prefix=test2 -- -i" % (self.target, self.sriov_vfs_port[0].pci), "testpmd>", 120)
         self.session_secondary.send_expect("mac_addr add 0 %s" % self.vf0_mac, "testpmd>")
-        self.session_secondary.send_expect("set fwd mac", "testpmd>")
+        self.session_secondary.send_expect("set fwd rxonly", "testpmd>")
         self.session_secondary.send_expect("set promisc all off", "testpmd>")
         self.session_secondary.send_expect("start", "testpmd>")
         time.sleep(2)
@@ -550,7 +553,7 @@ class TestVEBSwitching(TestCase):
         # tester->VF1
         self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n 4 --socket-mem 1024,1024 -w %s --file-prefix=test2 -- -i" % (self.target, self.sriov_vfs_port[1].pci), "testpmd>", 120)
         self.session_secondary.send_expect("mac_addr add 0 %s" % self.vf1_mac, "testpmd>")
-        self.session_secondary.send_expect("set fwd mac", "testpmd>")
+        self.session_secondary.send_expect("set fwd rxonly", "testpmd>")
         self.session_secondary.send_expect("set promisc all off", "testpmd>")
         self.session_secondary.send_expect("start", "testpmd>")
         time.sleep(2)
@@ -642,4 +645,3 @@ class TestVEBSwitching(TestCase):
         for port_id in self.dut_ports:
             port = self.dut.ports_info[port_id]['port']
             port.bind_driver(driver=self.drivername)
-
-- 
2.5.0

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

* Re: [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst
  2019-02-15  9:37 [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst Peng Yuan
@ 2019-02-26  3:24 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-02-26  3:24 UTC (permalink / raw)
  To: Peng, Yuan, dts; +Cc: Peng, Yuan

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Yuan
> Sent: Friday, February 15, 2019 5:38 PM
> To: dts@dpdk.org
> Cc: Peng, Yuan <yuan.peng@intel.com>
> Subject: [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst
> 
> Sync case to floating_veb_test_plan.rst
> 
> Signed-off-by: Peng Yuan <yuan.peng@intel.com>
> 
> diff --git a/tests/TestSuite_floating_veb.py b/tests/TestSuite_floating_veb.py
> index bf26f18..d5b2610 100644
> --- a/tests/TestSuite_floating_veb.py
> +++ b/tests/TestSuite_floating_veb.py
> @@ -256,12 +256,15 @@ class TestVEBSwitching(TestCase):
>          pf_tx_stats = self.veb_get_pmd_stats("first", 0, "tx")
>          self.verify(pf_tx_stats[0] != 0, "no packet was sent by PF")
>          self.verify(vf0_rx_stats[0] == 0, "VF0 can receive packet from PF, the
> floating VEB doesn't work")
> -        self.session_secondary.send_expect("quit", "# ")
> -        time.sleep(2)
> -        self.dut.send_expect("quit", "# ")
> -        time.sleep(2)
> 
> +    def test_floating_VEB_inter_tester_vf(self):
> +        """
> +        DPDK PF, then create 1VF, PF in the host running dpdk testpmd,
> +        send traffic from tester to VF0.
> +        In floating modeVF0 can't receive any packets;
> +        """
>          #outside world ->VF
> +        self.setup_env(driver=self.drivername, vf_num=1)
>          self.dut.send_expect("./%s/app/testpmd -c 0xf -n 4 --socket-mem
> 1024,1024 -w %s,enable_floating_veb=1 --file-prefix=test1 -- -i --eth-
> peer=0,%s" % (self.target, self.pf_pci, self.vf0_mac), "testpmd>", 120)
>          self.dut.send_expect("set fwd mac", "testpmd>")
>          self.dut.send_expect("set promisc all on", "testpmd>") @@ -532,7 +535,7
> @@ class TestVEBSwitching(TestCase):
> 
>          self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n 4 --
> socket-mem 1024,1024 -w %s --file-prefix=test2 -- -i" % (self.target,
> self.sriov_vfs_port[0].pci), "testpmd>", 120)
>          self.session_secondary.send_expect("mac_addr add 0 %s" % self.vf0_mac,
> "testpmd>")
> -        self.session_secondary.send_expect("set fwd mac", "testpmd>")
> +        self.session_secondary.send_expect("set fwd rxonly",
> + "testpmd>")
>          self.session_secondary.send_expect("set promisc all off", "testpmd>")
>          self.session_secondary.send_expect("start", "testpmd>")
>          time.sleep(2)
> @@ -550,7 +553,7 @@ class TestVEBSwitching(TestCase):
>          # tester->VF1
>          self.session_secondary.send_expect("./%s/app/testpmd -c 0xf0 -n 4 --
> socket-mem 1024,1024 -w %s --file-prefix=test2 -- -i" % (self.target,
> self.sriov_vfs_port[1].pci), "testpmd>", 120)
>          self.session_secondary.send_expect("mac_addr add 0 %s" % self.vf1_mac,
> "testpmd>")
> -        self.session_secondary.send_expect("set fwd mac", "testpmd>")
> +        self.session_secondary.send_expect("set fwd rxonly",
> + "testpmd>")
>          self.session_secondary.send_expect("set promisc all off", "testpmd>")
>          self.session_secondary.send_expect("start", "testpmd>")
>          time.sleep(2)
> @@ -642,4 +645,3 @@ class TestVEBSwitching(TestCase):
>          for port_id in self.dut_ports:
>              port = self.dut.ports_info[port_id]['port']
>              port.bind_driver(driver=self.drivername)
> -
> --
> 2.5.0

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

end of thread, other threads:[~2019-02-26  3:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-15  9:37 [dts] [PATCH]tests: sync case to floating_veb_test_plan.rst Peng Yuan
2019-02-26  3:24 ` Tu, Lijuan

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