test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH] tests/kni: fix failures for kni
@ 2017-08-17  5:22 Jianbo Liu
  2017-08-17 12:40 ` Liu, Yong
  0 siblings, 1 reply; 4+ messages in thread
From: Jianbo Liu @ 2017-08-17  5:22 UTC (permalink / raw)
  To: dts, herbert.guan; +Cc: Jianbo Liu

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 <jianbo.liu@linaro.org>
---
 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

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

end of thread, other threads:[~2017-08-18  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-17  5:22 [dts] [PATCH] tests/kni: fix failures for kni Jianbo Liu
2017-08-17 12:40 ` Liu, Yong
2017-08-18  1:55   ` Jianbo Liu
2017-08-18  8:55     ` 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).