test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] update coremask test case
@ 2016-08-19  5:25 xu,huilong
  2016-08-19  6:53 ` Liu, Yong
  0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2016-08-19  5:25 UTC (permalink / raw)
  To: dts; +Cc: xu,huilong

    update list:
    1. update compile switch for update highest log leavel to DEBUG leavel
    2. set log leavel to debug leavel when setup dpdk app
    3. skip core 0 when run all core mask.

Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
 tests/TestSuite_blacklist.py |  4 ++--
 tests/TestSuite_coremask.py  | 23 ++++++++++++++++-------
 2 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py
index 06dbf87..784d70d 100644
--- a/tests/TestSuite_blacklist.py
+++ b/tests/TestSuite_blacklist.py
@@ -50,9 +50,9 @@ class TestBlackList(TestCase):
         [arch, machine, self.env, toolchain] = self.target.split('-')
 
         if self.env == 'bsdapp':
-            self.regexp_blacklisted_port = "EAL: PCI device %02x:%s on NUMA socket [-0-9]+[^\n]*\nEAL:   probe driver[^\n]*\nEAL:   Device is blacklisted, not initializing"
+            self.regexp_blacklisted_port = "EAL: PCI device %02x:%s on NUMA socket [-0-9]+[^\n]*\nEAL:   Device is blacklisted, not initializing"
         else:
-            self.regexp_blacklisted_port = "EAL: PCI device %s on NUMA socket [-0-9]+[^\n]*\nEAL:   probe driver[^\n]*\nEAL:   Device is blacklisted, not initializing"
+            self.regexp_blacklisted_port = "EAL: PCI device %s on NUMA socket [-0-9]+[^\n]*\nEAL:   Device is blacklisted, not initializing"
         self.pmdout = PmdOutput(self.dut)
 
     def set_up(self):
diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py
index 4f6f4bd..9fd039d 100644
--- a/tests/TestSuite_coremask.py
+++ b/tests/TestSuite_coremask.py
@@ -17,7 +17,7 @@ from test_case import TestCase
 # Test class.
 #
 
-command_line = """./%s/app/test -c %s -n %d"""
+command_line = """./%s/app/test -c %s -n %d --log-level 8"""
 
 
 class TestCoremask(TestCase):
@@ -39,6 +39,11 @@ class TestCoremask(TestCase):
         self.mem_channel = self.dut.get_memory_channels()
 
         self.all_cores = self.dut.get_core_list("all")
+        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/"
+                          + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/' config/common_base", "# ", 30)
+
+        self.dut.skip_setup = False
+        self.dut.build_install_dpdk(self.target)
 
     def set_up(self):
         """
@@ -79,11 +84,11 @@ class TestCoremask(TestCase):
 
         out = self.dut.send_expect(command, "RTE>>", 10)
 
-        self.verify("EAL: Master lcore 0 is ready" in out,
-                    "Core 0 not ready")
+        self.verify("EAL: Master lcore 1 is ready" in out,
+                    "Core 1 not ready")
 
-        self.verify("EAL: Detected lcore 0 as core" in out,
-                    "Core 0 not detected")
+        self.verify("EAL: Detected lcore 1 as core" in out,
+                    "Core 1 not detected")
 
         for core in self.all_cores[1:]:
             self.verify("EAL: lcore %s is ready" % core in out,
@@ -99,7 +104,7 @@ class TestCoremask(TestCase):
         Check coremask parsing for more cores than available.
         """
 
-        command_line = """./%s/app/test -c %s -n %d|tee out"""
+        command_line = """./%s/app/test -c %s -n %d --log-level 8|tee out"""
 
         # Default big coremask value 128
         big_coremask_size = 128
@@ -173,4 +178,8 @@ class TestCoremask(TestCase):
         """
         Run after each test suite.
         """
-        pass
+        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/"
+                          + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO/' config/common_base", "# ", 30)
+
+        #self.dut.skip_setup = False
+        self.dut.build_install_dpdk(self.target)
-- 
1.9.3

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

end of thread, other threads:[~2016-08-19  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19  5:25 [dts] [PATCH V2] update coremask test case xu,huilong
2016-08-19  6:53 ` Liu, Yong

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