test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 0/2] tests/power_pstate: set check core in cfg file
@ 2020-05-29  7:30 yufengmx
  2020-05-29  7:30 ` [dts] [PATCH V1 1/2] " yufengmx
  2020-05-29  7:30 ` [dts] [PATCH V1 2/2] conf/power_pstate: " yufengmx
  0 siblings, 2 replies; 5+ messages in thread
From: yufengmx @ 2020-05-29  7:30 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx

 set check core in cfg file. 

yufengmx (2):
  tests/power_pstate: set check core in cfg file
  conf/power_pstate: set check core in cfg file

 conf/power_pstate.cfg           | 2 ++
 tests/TestSuite_power_pstate.py | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 conf/power_pstate.cfg

-- 
2.21.0


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

* [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file
  2020-05-29  7:30 [dts] [PATCH V1 0/2] tests/power_pstate: set check core in cfg file yufengmx
@ 2020-05-29  7:30 ` yufengmx
  2020-05-29  8:08   ` Yao, Lei A
  2020-06-01  3:24   ` Tu, Lijuan
  2020-05-29  7:30 ` [dts] [PATCH V1 2/2] conf/power_pstate: " yufengmx
  1 sibling, 2 replies; 5+ messages in thread
From: yufengmx @ 2020-05-29  7:30 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


set check core in cfg file.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 tests/TestSuite_power_pstate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_power_pstate.py b/tests/TestSuite_power_pstate.py
index 7ee6c8f..2ee0981 100644
--- a/tests/TestSuite_power_pstate.py
+++ b/tests/TestSuite_power_pstate.py
@@ -316,7 +316,7 @@ class TestPowerPstate(TestCase):
         try:
             self.start_vm_power_mgr()
             # select one core to run testing
-            core_index = 1
+            core_index = self.test_content.get('check_core') or 20
             # Enable turbo Boost for this core
             self.send_json_command(core_index, 'ENABLE_TURBO')
             # these test items sequence can't changed
@@ -359,6 +359,7 @@ class TestPowerPstate(TestCase):
         self.verify_power_driver()
         self.verify_hyper_threading()
         self.init_test_binary_file()
+        self.test_content = self.get_suite_cfg()
 
     def set_up(self):
         """
-- 
2.21.0


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

* [dts] [PATCH V1 2/2] conf/power_pstate: set check core in cfg file
  2020-05-29  7:30 [dts] [PATCH V1 0/2] tests/power_pstate: set check core in cfg file yufengmx
  2020-05-29  7:30 ` [dts] [PATCH V1 1/2] " yufengmx
@ 2020-05-29  7:30 ` yufengmx
  1 sibling, 0 replies; 5+ messages in thread
From: yufengmx @ 2020-05-29  7:30 UTC (permalink / raw)
  To: dts, lei.a.yao; +Cc: yufengmx


set check core in cfg file.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 conf/power_pstate.cfg | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 conf/power_pstate.cfg

diff --git a/conf/power_pstate.cfg b/conf/power_pstate.cfg
new file mode 100644
index 0000000..269dcc2
--- /dev/null
+++ b/conf/power_pstate.cfg
@@ -0,0 +1,2 @@
+[suite]
+check_core = 20
\ No newline at end of file
-- 
2.21.0


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

* Re: [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file
  2020-05-29  7:30 ` [dts] [PATCH V1 1/2] " yufengmx
@ 2020-05-29  8:08   ` Yao, Lei A
  2020-06-01  3:24   ` Tu, Lijuan
  1 sibling, 0 replies; 5+ messages in thread
From: Yao, Lei A @ 2020-05-29  8:08 UTC (permalink / raw)
  To: Mo, YufengX, dts



> -----Original Message-----
> From: Mo, YufengX <yufengx.mo@intel.com>
> Sent: Friday, May 29, 2020 3:30 PM
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts][PATCH V1 1/2] tests/power_pstate: set check core in cfg file
> 
> 
> set check core in cfg file.
> 
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
Acked-by: Lei Yao <lei.a.yao@intel.com>
> ---
>  tests/TestSuite_power_pstate.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_power_pstate.py
> b/tests/TestSuite_power_pstate.py
> index 7ee6c8f..2ee0981 100644
> --- a/tests/TestSuite_power_pstate.py
> +++ b/tests/TestSuite_power_pstate.py
> @@ -316,7 +316,7 @@ class TestPowerPstate(TestCase):
>          try:
>              self.start_vm_power_mgr()
>              # select one core to run testing
> -            core_index = 1
> +            core_index = self.test_content.get('check_core') or 20
>              # Enable turbo Boost for this core
>              self.send_json_command(core_index, 'ENABLE_TURBO')
>              # these test items sequence can't changed
> @@ -359,6 +359,7 @@ class TestPowerPstate(TestCase):
>          self.verify_power_driver()
>          self.verify_hyper_threading()
>          self.init_test_binary_file()
> +        self.test_content = self.get_suite_cfg()
> 
>      def set_up(self):
>          """
> --
> 2.21.0


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

* Re: [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file
  2020-05-29  7:30 ` [dts] [PATCH V1 1/2] " yufengmx
  2020-05-29  8:08   ` Yao, Lei A
@ 2020-06-01  3:24   ` Tu, Lijuan
  1 sibling, 0 replies; 5+ messages in thread
From: Tu, Lijuan @ 2020-06-01  3:24 UTC (permalink / raw)
  To: Mo, YufengX, dts, Yao, Lei A; +Cc: Mo, YufengX

Applied the series, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yufengmx
> Sent: Friday, May 29, 2020 3:30 PM
> To: dts@dpdk.org; Yao, Lei A <lei.a.yao@intel.com>
> Cc: Mo, YufengX <yufengx.mo@intel.com>
> Subject: [dts] [PATCH V1 1/2] tests/power_pstate: set check core in cfg file
> 
> 
> set check core in cfg file.
> 
> Signed-off-by: yufengmx <yufengx.mo@intel.com>
> ---
>  tests/TestSuite_power_pstate.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_power_pstate.py
> b/tests/TestSuite_power_pstate.py index 7ee6c8f..2ee0981 100644
> --- a/tests/TestSuite_power_pstate.py
> +++ b/tests/TestSuite_power_pstate.py
> @@ -316,7 +316,7 @@ class TestPowerPstate(TestCase):
>          try:
>              self.start_vm_power_mgr()
>              # select one core to run testing
> -            core_index = 1
> +            core_index = self.test_content.get('check_core') or 20
>              # Enable turbo Boost for this core
>              self.send_json_command(core_index, 'ENABLE_TURBO')
>              # these test items sequence can't changed @@ -359,6 +359,7 @@
> class TestPowerPstate(TestCase):
>          self.verify_power_driver()
>          self.verify_hyper_threading()
>          self.init_test_binary_file()
> +        self.test_content = self.get_suite_cfg()
> 
>      def set_up(self):
>          """
> --
> 2.21.0


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

end of thread, other threads:[~2020-06-01  3:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  7:30 [dts] [PATCH V1 0/2] tests/power_pstate: set check core in cfg file yufengmx
2020-05-29  7:30 ` [dts] [PATCH V1 1/2] " yufengmx
2020-05-29  8:08   ` Yao, Lei A
2020-06-01  3:24   ` Tu, Lijuan
2020-05-29  7:30 ` [dts] [PATCH V1 2/2] conf/power_pstate: " 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).