test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add test case about port restart 100 times
@ 2019-07-15 18:35 lihong
  2019-08-07  3:42 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: lihong @ 2019-07-15 18:35 UTC (permalink / raw)
  To: dts; +Cc: lihong

Signed-off-by: lihong <lihongx.ma@intel.com>
---
 .../TestSuite_pvp_qemu_multi_paths_port_restart.py  | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
index 38380ed..81328e0 100644
--- a/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
+++ b/tests/TestSuite_pvp_qemu_multi_paths_port_restart.py
@@ -311,6 +311,27 @@ class TestPVPQemuMultiPathPortRestart(TestCase):
         self.result_table_print()
         self.vm.stop()
 
+    def test_perf_pvp_qemu_modern_mergeable_mac_restart_100_times(self):
+        """
+        restart port 100 times on virtio1.0 mergeable path
+        """
+        self.start_vhost_testpmd()
+        self.start_one_vm(modem=1, mergeable=1)
+        self.start_vm_testpmd(path="mergeable")
+
+        case_info = "virtio1.0 mergeable"
+        Mpps, throughput = self.calculate_avg_throughput(64)
+        self.update_table_info(case_info, 64, Mpps, throughput, "Before Restart")
+        for cycle in range(100):
+            self.logger.info('now port restart  %d times' % (cycle+1))
+            self.port_restart()
+            Mpps, throughput = self.calculate_avg_throughput(64)
+            self.update_table_info(case_info, 64, Mpps, throughput, "After port restart")
+
+        self.close_all_testpmd()
+        self.result_table_print()
+        self.vm.stop()
+
     def tear_down(self):
         """
         Run after each test case.
-- 
2.7.4


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

end of thread, other threads:[~2019-08-07  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-15 18:35 [dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add test case about port restart 100 times lihong
2019-08-07  3:42 ` 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).