From patchwork Tue Sep 14 02:35:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 98816 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 52B2BA0C45; Tue, 14 Sep 2021 04:41:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AD134069C; Tue, 14 Sep 2021 04:41:37 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id EF7CC40151 for ; Tue, 14 Sep 2021 04:41:35 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10106"; a="244183090" X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="244183090" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 19:41:35 -0700 X-IronPort-AV: E=Sophos;i="5.85,291,1624345200"; d="scan'208";a="471800596" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 19:41:33 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Date: Tue, 14 Sep 2021 10:35:24 +0800 Message-Id: <20210914023524.2305891-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dts] [PATCH V1 1/6] tests/pvp_multi_paths_performance: check expected value from config file X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" Check expected value from config file and remove the check_value method. Signed-off-by: Wei Ling --- tests/TestSuite_pvp_multi_paths_performance.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/TestSuite_pvp_multi_paths_performance.py b/tests/TestSuite_pvp_multi_paths_performance.py index 11db11ee..7f809704 100644 --- a/tests/TestSuite_pvp_multi_paths_performance.py +++ b/tests/TestSuite_pvp_multi_paths_performance.py @@ -104,15 +104,6 @@ class TestPVPMultiPathPerformance(TestCase): self.path=self.dut.apps_name['test-pmd'] self.testpmd_name = self.path.split("/")[-1] - @property - def check_value(self): - check_dict = dict.fromkeys(self.frame_sizes) - linerate = {64: 0.085, 128: 0.12, 256: 0.20, 512: 0.35, 1024: 0.50, 1280: 0.55, 1518: 0.60} - for size in self.frame_sizes: - speed = self.wirespeed(self.nic, size, self.number_of_ports) - check_dict[size] = round(speed * linerate[size], 2) - return check_dict - def send_and_verify(self, case_info): """ Send packet with packet generator and verify @@ -138,9 +129,6 @@ class TestPVPMultiPathPerformance(TestCase): streams = self.pktgen_helper.prepare_stream_from_tginput(tgen_input, 100, None, self.tester.pktgen) _, pps = self.tester.pktgen.measure_throughput(stream_ids=streams) Mpps = pps / 1000000.0 - self.verify(Mpps > self.check_value[frame_size], - "%s of frame size %d speed verify failed, expect %s, result %s" % ( - self.running_case, frame_size, self.check_value[frame_size], Mpps)) self.throughput[frame_size][self.nb_desc] = Mpps linerate = Mpps * 100 / \ float(self.wirespeed(self.nic, frame_size, self.number_of_ports))