test suite reviews and discussions
 help / color / mirror / Atom feed
From: lihong <lihongx.ma@intel.com>
To: dts@dpdk.org
Cc: lihong <lihongx.ma@intel.com>
Subject: [dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add test case about port restart 100 times
Date: Tue, 16 Jul 2019 02:35:19 +0800	[thread overview]
Message-ID: <1563215719-14564-1-git-send-email-lihongx.ma@intel.com> (raw)

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


             reply	other threads:[~2019-07-16  1:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-15 18:35 lihong [this message]
2019-08-07  3:42 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1563215719-14564-1-git-send-email-lihongx.ma@intel.com \
    --to=lihongx.ma@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).