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 4E0BAA0562; Tue, 31 Mar 2020 04:59:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 39E021C08C; Tue, 31 Mar 2020 04:59:51 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 74A161C045 for ; Tue, 31 Mar 2020 04:59:49 +0200 (CEST) IronPort-SDR: LbOrIS1w7nbV1FxN+AyNv2FKQBLwx/ELd9pMQmy44PKJROQIHPZt8ZxGI0VddlCZmjjC72gih9 OVCLnH/eL/pQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2020 19:59:48 -0700 IronPort-SDR: kX4i9YIqjYA3NiZXnHS+OtosJZ2boPymjIrS+qkS1R80lSn6rzIEtxzNHYqjKswdJcqKtcNYDg 4NhCbDU2qLAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,326,1580803200"; d="scan'208";a="241797923" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga008.fm.intel.com with ESMTP; 30 Mar 2020 19:59:48 -0700 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 30 Mar 2020 19:59:48 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 31 Mar 2020 10:59:46 +0800 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.1713.004; Tue, 31 Mar 2020 10:59:46 +0800 From: "Xiao, QimaiX" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1 11/11]virtio_pvp_regression: update script according to testplan's update Thread-Index: AQHWAn3iMVd2HTU1K0a71o/iauzssqhiC92A Date: Tue, 31 Mar 2020 02:59:46 +0000 Message-ID: <124739b8f9604262a31356d22d2af30e@intel.com> References: <1585123857-130281-1-git-send-email-qimaix.xiao@intel.com> <1585123857-130281-11-git-send-email-qimaix.xiao@intel.com> In-Reply-To: <1585123857-130281-11-git-send-email-qimaix.xiao@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Tested-by: Xiao, QimaiX Regards, Xiao Qimai > -----Original Message----- > From: Xiao, QimaiX > Sent: Wednesday, March 25, 2020 4:11 PM > To: dts@dpdk.org > Cc: Xiao, QimaiX > Subject: [dts][PATCH V1 11/11]virtio_pvp_regression: update script > according to testplan's update >=20 > Signed-off-by: Xiao Qimai > --- > tests/TestSuite_virtio_pvp_regression.py | 34 > ++++++++++++++++++++++++++------ > 1 file changed, 28 insertions(+), 6 deletions(-) >=20 > 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') >=20 > - def start_vm(self, qemu_path, qemu_version, modem, virtio_path): > + def start_vm(self, qemu_path, qemu_version, modem, virtio_path, > packed=3DFalse): > """ > start vm > """ > @@ -227,6 +227,8 @@ class TestVirtioPVPRegression(TestCase): > opt_args =3D 'disable-modern=3Dfalse,' + opt_args > elif(modem =3D=3D 0): > opt_args =3D 'disable-modern=3Dtrue,' + opt_args > + if packed: > + opt_args =3D opt_args + ',packed=3Don' > vm_params['opt_settings'] =3D 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, "#"= ) >=20 > - def pvp_regression_run(self, case_info, modem, virtio_path): > + def pvp_regression_run(self, case_info, modem, virtio_path, > packed=3DFalse): > """ > run different qemu verssion on different virtio path of pvp regr= ession > modem =3D 0, start vm as virtio 0.95 @@ -357,7 +359,7 @@ class > TestVirtioPVPRegression(TestCase): > version =3D 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=3Dpacked) > 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): >=20 > 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=3Dpacked) > self.start_testpmd_in_vm(virtio_path) > self.send_verify(case_info, version, "reconnect from vm") >=20 > @@ -397,7 +399,7 @@ class TestVirtioPVPRegression(TestCase): > virtio_path =3D 'mergeable' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > - 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 =3D 'normal' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > - 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 =3D 'vector_rx' > self.pvp_regression_run(case_info, modem, virtio_path) >=20 > + 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 =3D 'virtio-1.1 mergeable' > + modem =3D 1 > + virtio_path =3D 'mergeable' > + self.pvp_regression_run(case_info, modem, virtio_path, > + packed=3DTrue) > + > + 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 =3D 'virtio-1.1 normal' > + modem =3D 1 > + virtio_path =3D 'normal' > + self.pvp_regression_run(case_info, modem, virtio_path, > + packed=3DTrue) > + > def tear_down(self): > """ > Run after each test case. > -- > 1.8.3.1