test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file
@ 2020-06-24  1:39 yufengmx
  2020-06-24  1:39 ` [dts] [PATCH V2 1/2] " yufengmx
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: yufengmx @ 2020-06-24  1:39 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx

select traffic frame size in suite cfg file. 

v2: 
 -  reduced default frame_size in config file as Sikora, ZbigniewX required. 

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] 4+ messages in thread

* [dts] [PATCH V2 1/2] tests/power_empty_poll: add suite cfg file
  2020-06-24  1:39 [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file yufengmx
@ 2020-06-24  1:39 ` yufengmx
  2020-06-24  1:39 ` [dts] [PATCH V2 2/2] " yufengmx
  2020-07-01  5:53 ` [dts] [PATCH V2 0/2] " Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: yufengmx @ 2020-06-24  1:39 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] 4+ messages in thread

* [dts] [PATCH V2 2/2] tests/power_empty_poll: add suite cfg file
  2020-06-24  1:39 [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file yufengmx
  2020-06-24  1:39 ` [dts] [PATCH V2 1/2] " yufengmx
@ 2020-06-24  1:39 ` yufengmx
  2020-07-01  5:53 ` [dts] [PATCH V2 0/2] " Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: yufengmx @ 2020-06-24  1:39 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..4533250
--- /dev/null
+++ b/conf/power_empty_poll.cfg
@@ -0,0 +1,3 @@
+# frame_size: select different traffic frame size.
+[suite]
+frame_size = 256
-- 
2.21.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file
  2020-06-24  1:39 [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file yufengmx
  2020-06-24  1:39 ` [dts] [PATCH V2 1/2] " yufengmx
  2020-06-24  1:39 ` [dts] [PATCH V2 2/2] " yufengmx
@ 2020-07-01  5:53 ` Tu, Lijuan
  2 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-07-01  5:53 UTC (permalink / raw)
  To: Mo, YufengX, dts, Yao, Lei A; +Cc: Mo, YufengX

Applied the series, thanks

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of yufengmx
> Sent: 2020年6月24日 9:39
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file
> 
> select traffic frame size in suite cfg file.
> 
> v2:
>  -  reduced default frame_size in config file as Sikora, ZbigniewX required.
> 
> 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] 4+ messages in thread

end of thread, other threads:[~2020-07-01  5:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24  1:39 [dts] [PATCH V2 0/2] tests/power_empty_poll: add suite cfg file yufengmx
2020-06-24  1:39 ` [dts] [PATCH V2 1/2] " yufengmx
2020-06-24  1:39 ` [dts] [PATCH V2 2/2] " yufengmx
2020-07-01  5:53 ` [dts] [PATCH V2 0/2] " Tu, Lijuan

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).