From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F070BA0471 for ; Tue, 16 Jul 2019 03:57:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AB3852BF4; Tue, 16 Jul 2019 03:57:56 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A6F8F2BE1 for ; Tue, 16 Jul 2019 03:57:55 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Jul 2019 18:57:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,496,1557212400"; d="scan'208";a="318852976" Received: from ubuntu.sh.intel.com ([10.67.119.68]) by orsmga004.jf.intel.com with ESMTP; 15 Jul 2019 18:57:45 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 16 Jul 2019 02:35:19 +0800 Message-Id: <1563215719-14564-1-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add test case about port restart 100 times X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- .../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