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 6F03EA058A; Wed, 25 Mar 2020 09:17:45 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6692B1C02D; Wed, 25 Mar 2020 09:17:45 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 64C0D1C027 for ; Wed, 25 Mar 2020 09:17:43 +0100 (CET) IronPort-SDR: f7TD0Rb1Zk8bzv5lAyxTFA3un4jX6peGx5iSnUkRaW/vwTN5LyateGML9YDBDJ9IkXQdJqUFSn GetPDvq+yL1g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 01:17:43 -0700 IronPort-SDR: oNwGrDJctJYwzAF+FaLgKMwb8nhTvVloDlxXyd2OiyTz6iR7XmIVdBfOxUP0JTV+VbkHcbfz9y 5/36AGEfcTiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,303,1580803200"; d="scan'208";a="282071922" Received: from unknown (HELO dpdk-zhaohy-t.sh.intel.com) ([10.240.183.68]) by fmsmga002.fm.intel.com with ESMTP; 25 Mar 2020 01:17:41 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Wed, 25 Mar 2020 16:10:57 +0800 Message-Id: <1585123857-130281-11-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 11/11]virtio_pvp_regression: update script according to testplan's update 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: Xiao Qimai --- tests/TestSuite_virtio_pvp_regression.py | 34 ++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_virtio_pvp_regression.py b/tests/TestSuite_virtio_pvp_regression.py index 97e522c..42aceae 100644 --- a/tests/TestSuite_virtio_pvp_regression.py +++ b/tests/TestSuite_virtio_pvp_regression.py @@ -198,7 +198,7 @@ class TestVirtioPVPRegression(TestCase): if 'cpupin' in list(self.vm.params[i]['cpu'][0].keys()): self.vm.params[i]['cpu'][0].pop('cpupin') - def start_vm(self, qemu_path, qemu_version, modem, virtio_path): + def start_vm(self, qemu_path, qemu_version, modem, virtio_path, packed=False): """ start vm """ @@ -227,6 +227,8 @@ class TestVirtioPVPRegression(TestCase): opt_args = 'disable-modern=false,' + opt_args elif(modem == 0): opt_args = 'disable-modern=true,' + opt_args + if packed: + opt_args = opt_args + ',packed=on' vm_params['opt_settings'] = opt_args self.vm.set_vm_device(**vm_params) self.vm.load_config() @@ -344,7 +346,7 @@ class TestVirtioPVPRegression(TestCase): self.dut.send_expect('killall -s INT qemu-system-x86_64', '# ') self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#") - def pvp_regression_run(self, case_info, modem, virtio_path): + def pvp_regression_run(self, case_info, modem, virtio_path, packed=False): """ run different qemu verssion on different virtio path of pvp regression modem = 0, start vm as virtio 0.95 @@ -357,7 +359,7 @@ class TestVirtioPVPRegression(TestCase): version = self.qemu_list[i]["version"] self.start_testpmd_as_vhost() # use different modem and different path to start vm - self.start_vm(path, version, modem, virtio_path) + self.start_vm(path, version, modem, virtio_path, packed=packed) self.start_testpmd_in_vm(virtio_path) self.logger.info("now testing the qemu path of %s" % path) time.sleep(5) @@ -370,7 +372,7 @@ class TestVirtioPVPRegression(TestCase): self.logger.info('now reconnect from vm') self.dut.send_expect('killall -s INT qemu-system-x86_64', '# ') - self.start_vm(path, version, modem, virtio_path) + self.start_vm(path, version, modem, virtio_path, packed=packed) self.start_testpmd_in_vm(virtio_path) self.send_verify(case_info, version, "reconnect from vm") @@ -397,7 +399,7 @@ class TestVirtioPVPRegression(TestCase): virtio_path = 'mergeable' self.pvp_regression_run(case_info, modem, virtio_path) - def test_perf_pvp_regression_normal_path(self): + def test_perf_pvp_regression_non_mergeable_path(self): """ Test the performance of one vm with virtio 0.95 on normal path diff qemu + multi queue + reconnect @@ -407,7 +409,7 @@ class TestVirtioPVPRegression(TestCase): virtio_path = 'normal' self.pvp_regression_run(case_info, modem, virtio_path) - def test_perf_pvp_regression_modern_normal_path(self): + def test_perf_pvp_regression_modern_non_mergeable_path(self): """ Test the performance of one vm with virtio 1.0 on normal path diff qemu + multi queue + reconnect @@ -437,6 +439,26 @@ class TestVirtioPVPRegression(TestCase): virtio_path = 'vector_rx' self.pvp_regression_run(case_info, modem, virtio_path) + def test_perf_pvp_with_virtio11_mergeable_path(self): + """ + Test the performance of one vm with virtio 1.1 on mergeable path + diff qemu + multi queue + reconnect + """ + case_info = 'virtio-1.1 mergeable' + modem = 1 + virtio_path = 'mergeable' + self.pvp_regression_run(case_info, modem, virtio_path, packed=True) + + def test_perf_pvp_with_virtio11_non_mergeable_path(self): + """ + Test the performance of one vm with virtio 1.1 on mergeable path + diff qemu + multi queue + reconnect + """ + case_info = 'virtio-1.1 normal' + modem = 1 + virtio_path = 'normal' + self.pvp_regression_run(case_info, modem, virtio_path, packed=True) + def tear_down(self): """ Run after each test case. -- 1.8.3.1