From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id E309F7D8E for ; Thu, 17 Aug 2017 07:23:33 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 887F980D; Wed, 16 Aug 2017 22:23:32 -0700 (PDT) Received: from ubuntu-jianbo.shanghai.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 932913F483; Wed, 16 Aug 2017 22:23:31 -0700 (PDT) From: Jianbo Liu To: dts@dpdk.org, herbert.guan@arm.com Cc: Jianbo Liu Date: Thu, 17 Aug 2017 13:22:31 +0800 Message-Id: <1502947351-14446-1-git-send-email-jianbo.liu@linaro.org> X-Mailer: git-send-email 1.9.1 Subject: [dts] [PATCH] tests/kni: fix failures for kni 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, 17 Aug 2017 05:23:34 -0000 The tests need to enable KNI ethtool, and recomple DPDK. Also bind to thread 0 of each core for function tests. Signed-off-by: Jianbo Liu --- tests/TestSuite_kni.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index acd6230..93203f5 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -52,8 +52,8 @@ packet_sizes_routing = [64, 256] ports_cores_template = '\(P([0123]),(C\{\d.\d.\d\}),(C\{\d.\d.\d\}),(C\{\d.\d.\d\}),?(C\{\d.\d.\d\})?\),?' -default_1_port_cores_config = '(P0,C{1.0.0},C{1.1.0},C{1.0.1})' -default_2_port_cores_config = '(P0,C{1.0.0},C{1.1.0},C{1.0.1}),(P1,C{1.2.0},C{1.3.0},C{1.2.1})' +default_1_port_cores_config = '(P0,C{1.0.0},C{1.1.0},C{1.2.0})' +default_2_port_cores_config = '(P0,C{1.0.0},C{1.1.0},C{1.2.0}),(P1,C{1.3.0},C{1.4.0},C{1.5.0})' stress_test_iterations = 50 stress_test_random_iterations = 50 @@ -258,6 +258,9 @@ class TestKni(TestCase): self.verify('no brctl' not in out, "The linux tool brctl is needed to run this test suite") + self.dut.send_expect("sed -i -e 's/KNI_KMOD_ETHTOOL=n$/KNI_KMOD_ETHTOOL=y/' config/common_base", "# ", 30) + self.dut.build_install_dpdk(self.target) + out = self.dut.send_expect("make -C ./examples/kni/", "# ", 5) self.verify('Error' not in out, "Compilation failed") @@ -1207,5 +1210,9 @@ class TestKni(TestCase): """ Run after each test suite. """ + + self.dut.send_expect("sed -i -e 's/KNI_KMOD_ETHTOOL=y$/KNI_KMOD_ETHTOOL=n/' config/common_base", "# ", 30) + self.dut.build_install_dpdk(self.target) + self.dut.kill_all() self.dut.send_expect("rmmod rte_kni", "# ", 10) -- 1.9.1