From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts] [PATCH V1 1/6] tests/pvp_multi_paths_performance: check expected value from config file
Date: Tue, 14 Sep 2021 10:35:24 +0800 [thread overview]
Message-ID: <20210914023524.2305891-1-weix.ling@intel.com> (raw)
Check expected value from config file and remove the check_value method.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
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))
--
2.25.1
reply other threads:[~2021-09-14 2:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210914023524.2305891-1-weix.ling@intel.com \
--to=weix.ling@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).