[dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add test case about port restart 100 times
Tu, Lijuan
lijuan.tu at intel.com
Wed Aug 7 05:42:34 CEST 2019
Applied, thanks
> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of lihong
> Sent: Tuesday, July 16, 2019 2:35 AM
> To: dts at dpdk.org
> Cc: Ma, LihongX <lihongx.ma at intel.com>
> Subject: [dts] [PATCH V1] tests/pvp_qemu_multi_paths_port_restart: add
> test case about port restart 100 times
>
> Signed-off-by: lihong <lihongx.ma at 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
More information about the dts
mailing list