From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 16C8B5683 for ; Wed, 28 Sep 2016 10:43:56 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP; 28 Sep 2016 01:43:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,409,1470726000"; d="scan'208";a="1057654663" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 28 Sep 2016 01:43:55 -0700 From: "xu,gang" To: dts@dpdk.org Cc: "xu,gang" Date: Wed, 28 Sep 2016 16:45:27 +0800 Message-Id: <1475052328-31142-2-git-send-email-gangx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1475052328-31142-1-git-send-email-gangx.xu@intel.com> References: <1475052328-31142-1-git-send-email-gangx.xu@intel.com> Subject: [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: Wed, 28 Sep 2016 08:43:57 -0000 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): -- 1.9.3