test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [dts 1/2] add ieee1588 test suite for fortville NIC
@ 2015-07-13  7:39 huilongx,xu
  2015-07-13  7:39 ` [dts] [dts 2/2] fix ieee1588 enable case failed for fortville and niantic NIC huilongx,xu
  2015-07-13  8:00 ` [dts] [dts 1/2] add ieee1588 test suite for fortville NIC Liu, Yong
  0 siblings, 2 replies; 3+ messages in thread
From: huilongx,xu @ 2015-07-13  7:39 UTC (permalink / raw)
  To: dts

From: huilong xu <huilongx.xu@intel.com>


Signed-off-by: huilong xu <huilongx.xu@intel.com>
---
 executions/execution_FVL.cfg |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/executions/execution_FVL.cfg b/executions/execution_FVL.cfg
index 20451a3..9f25802 100644
--- a/executions/execution_FVL.cfg
+++ b/executions/execution_FVL.cfg
@@ -25,7 +25,8 @@ test_suites=
     ipv4_reassembly,
     scatter,
     pmdrssreta,
-    pmdrss_hash
+    pmdrss_hash,
+    ieee1588
 targets=
     x86_64-native-linuxapp-gcc
 parameters=nic_type=cfg:func=true
-- 
1.7.4.4

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

* [dts] [dts 2/2] fix ieee1588 enable case failed for fortville and niantic NIC
  2015-07-13  7:39 [dts] [dts 1/2] add ieee1588 test suite for fortville NIC huilongx,xu
@ 2015-07-13  7:39 ` huilongx,xu
  2015-07-13  8:00 ` [dts] [dts 1/2] add ieee1588 test suite for fortville NIC Liu, Yong
  1 sibling, 0 replies; 3+ messages in thread
From: huilongx,xu @ 2015-07-13  7:39 UTC (permalink / raw)
  To: dts

From: huilong xu <huilongx.xu@intel.com>


Signed-off-by: huilong xu <huilongx.xu@intel.com>
---
 tests/TestSuite_ieee1588.py |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py
index 6ee95e4..e23f8fb 100644
--- a/tests/TestSuite_ieee1588.py
+++ b/tests/TestSuite_ieee1588.py
@@ -70,14 +70,15 @@ class TestIeee1588(TestCase):
         """
         IEEE1588 Enable test case.
         """
-        self.dut.send_expect("set fwd ieee1588", "testpmd> ")
+        self.dut.send_expect("set fwd ieee1588", "testpmd> ", 10)
         # Waiting for 'testpmd> ' Fails due to log messages, "Received non PTP packet", in the output
-        self.dut.send_expect("start", ">", 5)  
+        self.dut.send_expect("start", ">", 10)  
         # Allow the output from the "start" command to finish before looking for a regexp in expect
         time.sleep(1)
 
         # use the first port on that self.nic
         dutPorts = self.dut.get_ports()
+        mac =  self.dut.get_mac_address(dutPorts[0])
         port = self.tester.get_local_port(dutPorts[0])
         itf = self.tester.get_interface(port)
 
@@ -88,7 +89,7 @@ class TestIeee1588(TestCase):
         # this is the output of sniff
         # [<Ether  dst=01:1b:19:00:00:00 src=00:00:00:00:00:00 type=0x88f7 |<Raw  load='\x00\x02' |>>]
         self.tester.scapy_foreground()
-        self.tester.scapy_append('nutmac="01:1b:19:00:00:00"')
+        self.tester.scapy_append('nutmac="%s"' % mac)
         self.tester.scapy_append('sendp([Ether(dst=nutmac,type=0x88f7)/"\\x00\\x02"], iface="%s")' % itf)
         self.tester.scapy_append('time.sleep(1)')
 
@@ -102,9 +103,9 @@ class TestIeee1588(TestCase):
 
         text = dts.regexp(out, "(.*) by hardware")
         self.verify("IEEE1588 PTP V2 SYNC" in text, "Not filtered " + text)
-
-        rx_time = dts.regexp(out, "RX timestamp value (0x[0-9a-fA-F]+)")
-        tx_time = dts.regexp(out, "TX timestamp value (0x[0-9a-fA-F]+)")
+        
+        rx_time = dts.regexp(out, "RX timestamp value (\d+)")
+        tx_time = dts.regexp(out, "TX timestamp value (\d+)")
 
         self.verify(rx_time is not None, "RX timestamp error ")
         self.verify(tx_time is not None, "TX timestamp error ")
@@ -114,11 +115,12 @@ class TestIeee1588(TestCase):
         """
         IEEE1588 Disable test case.
         """
-        self.dut.send_expect("stop", "testpmd> ")
+        self.dut.send_expect("stop", "testpmd> ", 10)
         time.sleep(3)
 
         # use the first port on that self.nic
         dutPorts = self.dut.get_ports()
+        mac =  self.dut.get_mac_address(dutPorts[0])
         port = self.tester.get_local_port(dutPorts[0])
         itf = self.tester.get_interface(port)
 
@@ -127,7 +129,7 @@ class TestIeee1588(TestCase):
         self.tester.scapy_append('RESULT = p[1].summary()')
 
         self.tester.scapy_foreground()
-        self.tester.scapy_append('nutmac="01:1b:19:00:00:00"')
+        self.tester.scapy_append('nutmac="%s"' % mac)
         self.tester.scapy_append('sendp([Ether(dst=nutmac,type=0x88f7)/"\\x00\\x02"], iface="%s")' % itf)
 
         self.tester.scapy_execute()
-- 
1.7.4.4

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

* Re: [dts] [dts 1/2] add ieee1588 test suite for fortville NIC
  2015-07-13  7:39 [dts] [dts 1/2] add ieee1588 test suite for fortville NIC huilongx,xu
  2015-07-13  7:39 ` [dts] [dts 2/2] fix ieee1588 enable case failed for fortville and niantic NIC huilongx,xu
@ 2015-07-13  8:00 ` Liu, Yong
  1 sibling, 0 replies; 3+ messages in thread
From: Liu, Yong @ 2015-07-13  8:00 UTC (permalink / raw)
  To: Xu, HuilongX, dts

Thanks, applied in 1.1 branch.

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of huilongx,xu
> Sent: Monday, July 13, 2015 3:40 PM
> To: dts@dpdk.org
> Subject: [dts] [dts 1/2] add ieee1588 test suite for fortville NIC
> 
> From: huilong xu <huilongx.xu@intel.com>
> 
> 
> Signed-off-by: huilong xu <huilongx.xu@intel.com>
> ---
>  executions/execution_FVL.cfg |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/executions/execution_FVL.cfg b/executions/execution_FVL.cfg
> index 20451a3..9f25802 100644
> --- a/executions/execution_FVL.cfg
> +++ b/executions/execution_FVL.cfg
> @@ -25,7 +25,8 @@ test_suites=
>      ipv4_reassembly,
>      scatter,
>      pmdrssreta,
> -    pmdrss_hash
> +    pmdrss_hash,
> +    ieee1588
>  targets=
>      x86_64-native-linuxapp-gcc
>  parameters=nic_type=cfg:func=true
> --
> 1.7.4.4

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

end of thread, other threads:[~2015-07-13  8:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13  7:39 [dts] [dts 1/2] add ieee1588 test suite for fortville NIC huilongx,xu
2015-07-13  7:39 ` [dts] [dts 2/2] fix ieee1588 enable case failed for fortville and niantic NIC huilongx,xu
2015-07-13  8:00 ` [dts] [dts 1/2] add ieee1588 test suite for fortville NIC 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).