* [dts] [PATCH V2] fix ping6 and stress test case
@ 2016-12-14 9:07 xu,huilong
2016-12-14 15:15 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: xu,huilong @ 2016-12-14 9:07 UTC (permalink / raw)
To: dts; +Cc: xu,huilong
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
tests/TestSuite_kni.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
index 18bd768..3836c57 100644
--- a/tests/TestSuite_kni.py
+++ b/tests/TestSuite_kni.py
@@ -574,12 +574,14 @@ class TestKni(TestCase):
out = self.dut.send_expect("ping6 -w 1 -I %s %s" %
(virtual_interface, str(ipv6_address)), "# ", 10)
- self.verify("64 bytes from %s: icmp_seq=1 ttl=64" %
+ # FC25 ping6 output info is "64 bytes from ipv6_address%v: icmp_seq=1 ttl=64"
+ # other os ping6 output is "64 bytes from ipv6_address: icmp_seq=1 ttl=64"
+ self.verify("64 bytes from %s" %
ipv6_address in out, "ping6 not supported")
out = self.tester.send_expect(
"ping6 -w 1 -I %s %s" % (tx_interface, str(ipv6_address)), "# ", 10)
- self.verify("64 bytes from %s: icmp_seq=1 ttl=64" %
+ self.verify("64 bytes from %s" %
ipv6_address in out, "kni cannot reply ping6 packet")
ipv6list = list(ipv6_address)
@@ -806,14 +808,14 @@ class TestKni(TestCase):
try:
out = self.start_kni(step['lo_mode'], step['kthread_mode'])
self.verify("Error" not in out, "Error found during kni start")
+ # kni setup out info by kernel debug function. so should re-build kenel.
+ # now not check kni setup out info, only check kni setup ok and setup no error output
+ out = self.dut.send_expect('ps -aux', "]# ")
+ self.verify("kni" not in out, "kni process setup failed")
except:
# some permutations have to fail
pass
- out = self.dut.send_expect('dmesg -c | grep "KNI"', "]# ")
- self.verify(len(re.findall(expectedMessage, out, re.DOTALL)) > 0,
- "Module not properly loaded")
-
def test_perf_loopback(self):
"""
KNI loopback performance
--
1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [PATCH V2] fix ping6 and stress test case
2016-12-14 9:07 [dts] [PATCH V2] fix ping6 and stress test case xu,huilong
@ 2016-12-14 15:15 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2016-12-14 15:15 UTC (permalink / raw)
To: Xu, HuilongX, dts; +Cc: Xu, HuilongX
Thanks, applied into master branch. It's better to also add those information in the commit log.
It will help others to understand what changed in your patch.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Wednesday, December 14, 2016 5:07 PM
> To: dts@dpdk.org
> Cc: Xu, HuilongX
> Subject: [dts] [PATCH V2] fix ping6 and stress test case
>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> tests/TestSuite_kni.py | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py
> index 18bd768..3836c57 100644
> --- a/tests/TestSuite_kni.py
> +++ b/tests/TestSuite_kni.py
> @@ -574,12 +574,14 @@ class TestKni(TestCase):
>
> out = self.dut.send_expect("ping6 -w 1 -I %s %s" %
> (virtual_interface,
> str(ipv6_address)), "# ", 10)
> - self.verify("64 bytes from %s: icmp_seq=1 ttl=64" %
> + # FC25 ping6 output info is "64 bytes from ipv6_address%v:
> icmp_seq=1 ttl=64"
> + # other os ping6 output is "64 bytes from ipv6_address:
> icmp_seq=1 ttl=64"
> + self.verify("64 bytes from %s" %
> ipv6_address in out, "ping6 not supported")
>
> out = self.tester.send_expect(
> "ping6 -w 1 -I %s %s" % (tx_interface, str(ipv6_address)),
> "# ", 10)
> - self.verify("64 bytes from %s: icmp_seq=1 ttl=64" %
> + self.verify("64 bytes from %s" %
> ipv6_address in out, "kni cannot reply ping6
> packet")
>
> ipv6list = list(ipv6_address)
> @@ -806,14 +808,14 @@ class TestKni(TestCase):
> try:
> out = self.start_kni(step['lo_mode'],
> step['kthread_mode'])
> self.verify("Error" not in out, "Error found during kni
> start")
> + # kni setup out info by kernel debug function. so should
> re-build kenel.
> + # now not check kni setup out info, only check kni setup
> ok and setup no error output
> + out = self.dut.send_expect('ps -aux', "]# ")
> + self.verify("kni" not in out, "kni process setup failed")
> except:
> # some permutations have to fail
> pass
>
> - out = self.dut.send_expect('dmesg -c | grep "KNI"', "]# ")
> - self.verify(len(re.findall(expectedMessage, out, re.DOTALL)) >
> 0,
> - "Module not properly loaded")
> -
> def test_perf_loopback(self):
> """
> KNI loopback performance
> --
> 1.9.3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-14 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 9:07 [dts] [PATCH V2] fix ping6 and stress test case xu,huilong
2016-12-14 15:15 ` 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).