From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id E20056A12 for ; Fri, 19 Aug 2016 07:29:59 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 18 Aug 2016 22:29:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,543,1464678000"; d="scan'208";a="1028175735" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by fmsmga001.fm.intel.com with ESMTP; 18 Aug 2016 22:29:53 -0700 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Fri, 19 Aug 2016 13:25:28 +0800 Message-Id: <1471584328-19701-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] update coremask test case X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2016 05:30:00 -0000 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 --- 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