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 25781A04A3; Mon, 4 Nov 2019 04:23:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 18A555F13; Mon, 4 Nov 2019 04:23:43 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id E67AB4CA7 for ; Mon, 4 Nov 2019 04:23:40 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 19:23:39 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,265,1569308400"; d="scan'208";a="205057736" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga006.jf.intel.com with ESMTP; 03 Nov 2019 19:23:39 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 19:23:39 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 3 Nov 2019 19:23:38 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.63]) with mapi id 14.03.0439.000; Mon, 4 Nov 2019 11:23:37 +0800 From: "Tu, Lijuan" To: "Mei, JianweiX" , "dts@dpdk.org" CC: "Mei, JianweiX" Thread-Topic: [dts] [PATCH V1] tests/runtime_vf_queue_number: add case Thread-Index: AQHVjgY1ebEvZsoHakiPAfccvDC7G6d6YmQg Date: Mon, 4 Nov 2019 03:23:36 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB5D561@SHSMSX101.ccr.corp.intel.com> References: <1572350029-83187-1-git-send-email-jianweix.mei@intel.com> In-Reply-To: <1572350029-83187-1-git-send-email-jianweix.mei@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTgxMjM2NTQtYjc5OS00NDA3LThjMzMtN2FjZjc3OTZjZWVjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiV1V6Tlp5V2NvNko3dU5tYUVheExWTlwvaG5JTERkYk9rYXYxdGVoSWI3YXlOVVRWVTBmdU9wRXI1R0w1VUVWRUwifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/runtime_vf_queue_number: add case 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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Jianwei Mei > Sent: Tuesday, October 29, 2019 7:54 PM > To: dts@dpdk.org > Cc: Mei, JianweiX > Subject: [dts] [PATCH V1] tests/runtime_vf_queue_number: add case >=20 > add case,bug fixed on dpdk19.08 for set invalid VF queue number with > testpmd function command. >=20 > Signed-off-by: Jianwei Mei > --- > tests/TestSuite_runtime_vf_queue_number.py | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_vf_queue_number.py > b/tests/TestSuite_runtime_vf_queue_number.py > index 227d815..940e36a 100644 > --- a/tests/TestSuite_runtime_vf_queue_number.py > +++ b/tests/TestSuite_runtime_vf_queue_number.py > @@ -341,8 +341,21 @@ class TestRuntimeVfQn(TestCase): > Test case 6: set invalid VF queue number with testpmd function > command > :return: > """ > - # There is a bug of this test case, so the function hasn't been > implemented. > - pass > + expect_str =3D ["Warning: Either rx or tx queues should be non z= ero", > + "Fail: input rxq (17) can't be greater than max_rx= _queues (16) > of port 0", > + "Fail: input txq (17) can't be greater than max_tx= _queues (16) of > port 0"] > + host_eal_param =3D '-w %s --file-prefix=3Dtest1 --socket-mem 102= 4,1024' % > self.pf_pci > + self.host_testpmd.start_testpmd(self.pmdout.default_cores, param= =3D'', > eal_param=3Dhost_eal_param) > + gest_eal_param =3D '-w %s --file-prefix=3Dtest2' % > self.vm_dut_0.ports_info[0]['pci'] > + self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) > + self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, > eal_param=3Dgest_eal_param, param=3D'') > + for invalid_qn in [0, 17]: > + self.vm0_testpmd.execute_cmd('port stop all') > + rxq_output =3D self.vm0_testpmd.execute_cmd('port config all= rxq %d' % > invalid_qn) > + txq_output =3D self.vm0_testpmd.execute_cmd('port config all= txq %d' % > invalid_qn) > + self.verify(rxq_output or txq_output in expect_str, "The out= put is not > expect.") > + self.vm0_testpmd.execute_cmd('port start all') > + self.vm0_testpmd.execute_cmd('quit', '# ') >=20 > def test_reserve_vf_qn(self): > """ > -- > 1.8.3.1