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 E2639A3160 for ; Thu, 10 Oct 2019 08:04:28 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 974EF1E8F3; Thu, 10 Oct 2019 08:04:28 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 1E24D1E8EE for ; Thu, 10 Oct 2019 08:04:26 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Oct 2019 23:04:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,279,1566889200"; d="scan'208";a="223836572" Received: from unknown (HELO dpdk-meijianwei-tester.sh.intel.com) ([10.240.179.33]) by fmsmga002.fm.intel.com with ESMTP; 09 Oct 2019 23:04:25 -0700 From: Jianwei Mei To: dts@dpdk.org Cc: Jianwei Mei Date: Thu, 10 Oct 2019 22:48:56 +0800 Message-Id: <1570718936-197329-1-git-send-email-jianweix.mei@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number: bug fixed and 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" add case,bug fixed on dpdk19.08 for set invalid VF queue number with testpmd function command. Signed-off-by: Jianwei Mei --- tests/TestSuite_runtime_vf_queue_number.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py index 63a5e18..3567632 100644 --- a/tests/TestSuite_runtime_vf_queue_number.py +++ b/tests/TestSuite_runtime_vf_queue_number.py @@ -346,8 +346,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 = ["Warning: Either rx or tx queues should be non zero", + "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 = '-w %s --file-prefix=test1 --socket-mem 1024,1024' % self.pf_pci + self.host_testpmd.start_testpmd(self.pmdout.default_cores, param='', eal_param=host_eal_param) + gest_eal_param = '-w %s --file-prefix=test2' % self.vm_dut_0.ports_info[0]['pci'] + self.vm0_testpmd = PmdOutput(self.vm_dut_0) + self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param='') + for invalid_qn in [0, 17]: + self.vm0_testpmd.execute_cmd('port stop all') + rxq_output = self.vm0_testpmd.execute_cmd('port config all rxq %d' % invalid_qn) + txq_output = self.vm0_testpmd.execute_cmd('port config all txq %d' % invalid_qn) + self.verify(rxq_output or txq_output in expect_str, "The output is not expect.") + self.vm0_testpmd.execute_cmd('port start all') + self.vm0_testpmd.execute_cmd('quit', '# ') def test_reserve_vf_qn(self): """ -- 1.8.3.1