* [dts] [PATCH V1 0/2] tests/power_empty_poll: add suite cfg file
@ 2020-06-22 5:59 yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 1/2] " yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 2/2] " yufengmx
0 siblings, 2 replies; 3+ messages in thread
From: yufengmx @ 2020-06-22 5:59 UTC (permalink / raw)
To: dts, lei.a.yao; +Cc: yufengmx
select traffic frame size in suite cfg file.
yufengmx (2):
tests/power_empty_poll: add suite cfg file
tests/power_empty_poll: add suite cfg file
conf/power_empty_poll.cfg | 3 +++
tests/TestSuite_power_empty_poll.py | 4 +++-
2 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 conf/power_empty_poll.cfg
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1 1/2] tests/power_empty_poll: add suite cfg file
2020-06-22 5:59 [dts] [PATCH V1 0/2] tests/power_empty_poll: add suite cfg file yufengmx
@ 2020-06-22 5:59 ` yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 2/2] " yufengmx
1 sibling, 0 replies; 3+ messages in thread
From: yufengmx @ 2020-06-22 5:59 UTC (permalink / raw)
To: dts, lei.a.yao; +Cc: yufengmx
select traffic frame size in suite cfg file.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
tests/TestSuite_power_empty_poll.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_power_empty_poll.py b/tests/TestSuite_power_empty_poll.py
index 7b35b9d..93843f7 100644
--- a/tests/TestSuite_power_empty_poll.py
+++ b/tests/TestSuite_power_empty_poll.py
@@ -141,7 +141,7 @@ class TestPowerEmptyPoll(TestCase):
'type': 'UDP',
'pkt_layers': {
'ipv4': {'dst': '1.1.1.1'},
- 'raw': {'payload': ['58'] * self.get_pkt_len('udp', frame_size=1024)}}},
+ 'raw': {'payload': ['58'] * self.get_pkt_len('udp', frame_size=self.frame_size)}}},
}
# create packet instance for send
streams = []
@@ -390,6 +390,8 @@ class TestPowerEmptyPoll(TestCase):
def preset_test_environment(self):
self.is_l3fwd_on = None
self.cpu_info, self.base_freqs_info = self.get_all_cpu_attrs()
+ test_content = self.get_suite_cfg()
+ self.frame_size = test_content.get('frame_size') or 1024
self.check_core = self.get_normal_cores_index(2)
self.verify_hyper_threading()
# modprobe msr module to let the application can get the CPU HW info
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [dts] [PATCH V1 2/2] tests/power_empty_poll: add suite cfg file
2020-06-22 5:59 [dts] [PATCH V1 0/2] tests/power_empty_poll: add suite cfg file yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 1/2] " yufengmx
@ 2020-06-22 5:59 ` yufengmx
1 sibling, 0 replies; 3+ messages in thread
From: yufengmx @ 2020-06-22 5:59 UTC (permalink / raw)
To: dts, lei.a.yao; +Cc: yufengmx
select traffic frame size in suite cfg file.
Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
conf/power_empty_poll.cfg | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 conf/power_empty_poll.cfg
diff --git a/conf/power_empty_poll.cfg b/conf/power_empty_poll.cfg
new file mode 100644
index 0000000..60cf485
--- /dev/null
+++ b/conf/power_empty_poll.cfg
@@ -0,0 +1,3 @@
+# frame_size: select different traffic frame size.
+[suite]
+frame_size = 1024
--
2.21.0
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-06-22 5:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22 5:59 [dts] [PATCH V1 0/2] tests/power_empty_poll: add suite cfg file yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 1/2] " yufengmx
2020-06-22 5:59 ` [dts] [PATCH V1 2/2] " yufengmx
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).