test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] update case for env with lcores less than 10
@ 2019-07-03  8:45 xiao,qimai
  2019-07-03  9:03 ` Yao, BingX Y
  2019-07-10  5:32 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xiao,qimai @ 2019-07-03  8:45 UTC (permalink / raw)
  To: dts; +Cc: xiao,qimai

modify coremask to 5,6 rather than 9,10 to run on env with only 8 lcores.

Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_multiprocess.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
index a22266a..b690d81 100644
--- a/tests/TestSuite_multiprocess.py
+++ b/tests/TestSuite_multiprocess.py
@@ -97,7 +97,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary" % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
 
         self.session_secondary.send_expect("send hello_primary", ">")
@@ -110,7 +110,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary " % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
         self.session_secondary.send_expect("send hello_secondary", ">")
         out = self.dut.get_session_output()
@@ -129,7 +129,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary" % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
         stringsSent = 0
         for line in open('/usr/share/dict/words', 'r').readlines():
@@ -154,7 +154,7 @@ class TestMultiprocess(TestCase):
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto " % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly")
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: SECONDARY" in out,
                     "The type of process (SECONDARY) was not detected properly")
@@ -171,7 +171,7 @@ class TestMultiprocess(TestCase):
         out = self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly")
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected properly")
         self.session_secondary.send_expect("send hello_secondary", ">",100)
@@ -190,7 +190,7 @@ class TestMultiprocess(TestCase):
         cores = self.dut.get_core_list('1S/2C/1T')
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), "Finished Process Init", 100)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s" % (self.target, coremask), "# ", 100)
 
         self.verify("Is another primary process running" in out,
-- 
2.17.1


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

* Re: [dts] [PATCH V1] update case for env with lcores less than 10
  2019-07-03  8:45 [dts] [PATCH V1] update case for env with lcores less than 10 xiao,qimai
@ 2019-07-03  9:03 ` Yao, BingX Y
  2019-07-10  5:32 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Yao, BingX Y @ 2019-07-03  9:03 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

Tested-by:Yao, BingX Y <bingx.y.yao@intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai
Sent: Wednesday, July 3, 2019 4:46 PM
To: dts@dpdk.org
Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
Subject: [dts] [PATCH V1] update case for env with lcores less than 10

modify coremask to 5,6 rather than 9,10 to run on env with only 8 lcores.

Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
---
 tests/TestSuite_multiprocess.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index a22266a..b690d81 100644
--- a/tests/TestSuite_multiprocess.py
+++ b/tests/TestSuite_multiprocess.py
@@ -97,7 +97,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary" % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
 
         self.session_secondary.send_expect("send hello_primary", ">") @@ -110,7 +110,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary " % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
         self.session_secondary.send_expect("send hello_secondary", ">")
         out = self.dut.get_session_output() @@ -129,7 +129,7 @@ class TestMultiprocess(TestCase):
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=primary" % (self.target, coremask), "Finished Process Init", 100)
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process Init", 100)
         stringsSent = 0
         for line in open('/usr/share/dict/words', 'r').readlines():
@@ -154,7 +154,7 @@ class TestMultiprocess(TestCase):
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto " % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly")
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: SECONDARY" in out,
                     "The type of process (SECONDARY) was not detected properly") @@ -171,7 +171,7 @@ class TestMultiprocess(TestCase):
         out = self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The type of process (PRIMARY) was not detected properly")
         time.sleep(20)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init", 100)
         self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The type of process (SECONDARY) was not detected properly")
         self.session_secondary.send_expect("send hello_secondary", ">",100) @@ -190,7 +190,7 @@ class TestMultiprocess(TestCase):
         cores = self.dut.get_core_list('1S/2C/1T')
         coremask = utils.create_mask(cores)
         self.session_secondary.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), "Finished Process Init", 100)
-        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
+        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
         out = self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -n 1 -c %s" % (self.target, coremask), "# ", 100)
 
         self.verify("Is another primary process running" in out,
--
2.17.1


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

* Re: [dts] [PATCH V1] update case for env with lcores less than 10
  2019-07-03  8:45 [dts] [PATCH V1] update case for env with lcores less than 10 xiao,qimai
  2019-07-03  9:03 ` Yao, BingX Y
@ 2019-07-10  5:32 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2019-07-10  5:32 UTC (permalink / raw)
  To: Xiao, QimaiX, dts; +Cc: Xiao, QimaiX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xiao,qimai
> Sent: Wednesday, July 3, 2019 4:46 PM
> To: dts@dpdk.org
> Cc: Xiao, QimaiX <qimaix.xiao@intel.com>
> Subject: [dts] [PATCH V1] update case for env with lcores less than 10
> 
> modify coremask to 5,6 rather than 9,10 to run on env with only 8 lcores.
> 
> Signed-off-by: xiao,qimai <qimaix.xiao@intel.com>
> ---
>  tests/TestSuite_multiprocess.py | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/TestSuite_multiprocess.py
> b/tests/TestSuite_multiprocess.py index a22266a..b690d81 100644
> --- a/tests/TestSuite_multiprocess.py
> +++ b/tests/TestSuite_multiprocess.py
> @@ -97,7 +97,7 @@ class TestMultiprocess(TestCase):
>          coremask = utils.create_mask(cores)
> 
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s --proc-type=primary" % (self.target, coremask), "Finished Process
> Init", 100)
>          time.sleep(20)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
> 
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s --proc-type=secondary" % (self.target, coremask),
> "Finished Process Init", 100)
> 
>          self.session_secondary.send_expect("send hello_primary", ">") @@ -
> 110,7 +110,7 @@ class TestMultiprocess(TestCase):
>          coremask = utils.create_mask(cores)
> 
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s --proc-type=primary " % (self.target, coremask),
> "Finished Process Init", 100)
>          time.sleep(20)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
> 
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process
> Init", 100)
>          self.session_secondary.send_expect("send hello_secondary", ">")
>          out = self.dut.get_session_output() @@ -129,7 +129,7 @@ class
> TestMultiprocess(TestCase):
>          coremask = utils.create_mask(cores)
> 
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s --proc-type=primary" % (self.target, coremask),
> "Finished Process Init", 100)
>          time.sleep(20)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
> 
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s --proc-type=secondary" % (self.target, coremask), "Finished Process
> Init", 100)
>          stringsSent = 0
>          for line in open('/usr/share/dict/words', 'r').readlines():
> @@ -154,7 +154,7 @@ class TestMultiprocess(TestCase):
>          out =
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s --proc-type=auto " % (self.target, coremask), "Finished Process Init",
> 100)
>          self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The
> type of process (PRIMARY) was not detected properly")
>          time.sleep(20)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
>          out =
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask),
> "Finished Process Init", 100)
>          self.verify("EAL: Auto-detected process type: SECONDARY" in out,
>                      "The type of process (SECONDARY) was not detected properly")
> @@ -171,7 +171,7 @@ class TestMultiprocess(TestCase):
>          out =
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s --proc-type=auto" % (self.target, coremask),
> "Finished Process Init", 100)
>          self.verify("EAL: Auto-detected process type: PRIMARY" in out, "The
> type of process (PRIMARY) was not detected properly")
>          time.sleep(20)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
>          out =
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s --proc-type=auto" % (self.target, coremask), "Finished Process Init",
> 100)
>          self.verify("EAL: Auto-detected process type: SECONDARY" in out, "The
> type of process (SECONDARY) was not detected properly")
>          self.session_secondary.send_expect("send hello_secondary", ">",100)
> @@ -190,7 +190,7 @@ class TestMultiprocess(TestCase):
>          cores = self.dut.get_core_list('1S/2C/1T')
>          coremask = utils.create_mask(cores)
> 
> self.session_secondary.send_expect("./examples/multi_process/simple_mp/
> %s/simple_mp -n 1 -c %s -m 64" % (self.target, coremask), "Finished Process
> Init", 100)
> -        coremask = hex(int(coremask, 16) * 0x100).rstrip("L")
> +        coremask = hex(int(coremask, 16) * 0x10).rstrip("L")
>          out =
> self.dut.send_expect("./examples/multi_process/simple_mp/%s/simple_mp -
> n 1 -c %s" % (self.target, coremask), "# ", 100)
> 
>          self.verify("Is another primary process running" in out,
> --
> 2.17.1


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

end of thread, other threads:[~2019-07-10  5:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03  8:45 [dts] [PATCH V1] update case for env with lcores less than 10 xiao,qimai
2019-07-03  9:03 ` Yao, BingX Y
2019-07-10  5:32 ` 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).