From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 81C7F2B86 for ; Thu, 29 Sep 2016 07:27:26 +0200 (CEST) Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP; 28 Sep 2016 22:27:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,413,1470726000"; d="scan'208";a="14391017" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by fmsmga006.fm.intel.com with ESMTP; 28 Sep 2016 22:27:24 -0700 Message-ID: <57ECA6DD.9020903@intel.com> Date: Thu, 29 Sep 2016 13:30:05 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,gang" , dts@dpdk.org References: <1475052328-31142-1-git-send-email-gangx.xu@intel.com> <1475052328-31142-2-git-send-email-gangx.xu@intel.com> In-Reply-To: <1475052328-31142-2-git-send-email-gangx.xu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [dts] [PATCH V1 2/3] fix TestSuite unit_tests_lpm on FreeBSD 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: Thu, 29 Sep 2016 05:27:27 -0000 Applied, please make submit title and log more readable. On 09/28/2016 04:45 PM, xu,gang wrote: > build branch for FreeBSD in TestSuite unit_tests_lpm > old code not support FreeBSD > > Signed-off-by: xu,gang > --- > tests/TestSuite_unit_tests_lpm.py | 17 +++++++++++------ > 1 file changed, 11 insertions(+), 6 deletions(-) > > diff --git a/tests/TestSuite_unit_tests_lpm.py b/tests/TestSuite_unit_tests_lpm.py > index dadb492..d892916 100644 > --- a/tests/TestSuite_unit_tests_lpm.py > +++ b/tests/TestSuite_unit_tests_lpm.py > @@ -83,16 +83,21 @@ class TestUnitTestsLpmIpv6(TestCase): > """ > [arch, machine, env, toolchain] = self.target.split('-') > self.verify(arch == "x86_64", "lpm6 request huge memory") > - > - hugepage_ori = self.dut.get_total_huge_pages() > - self.dut.set_huge_pages(4096) > - hugepage_num = self.dut.get_total_huge_pages() > - self.verify(hugepage_num >= 4096, "failed to request huge memory") > + if env == 'bsdapp': > + pass > + else: > + hugepage_ori = self.dut.get_total_huge_pages() > + self.dut.set_huge_pages(4096) > + hugepage_num = self.dut.get_total_huge_pages() > + self.verify(hugepage_num >= 4096, "failed to request huge memory") > > self.dut.send_expect("./app/test/test -n 1 -c ffff", "R.*T.*E.*>.*>", 60) > out = self.dut.send_expect("lpm6_autotest", "RTE>>", 3600) > self.dut.send_expect("quit", "# ") > - self.dut.set_huge_pages(hugepage_ori) > + if env == 'bsdapp': > + pass > + else: > + self.dut.set_huge_pages(hugepage_ori) > self.verify("Test OK" in out, "Test failed") > > def tear_down(self):