* [dts] [PATCH V1] define build_time in freebsd when compile dpdk
@ 2017-03-06 2:13 xu,huilong
2017-03-06 8:24 ` Liu, Yong
0 siblings, 1 reply; 4+ messages in thread
From: xu,huilong @ 2017-03-06 2:13 UTC (permalink / raw)
To: dts; +Cc: xu,huilong
Signed-off-by: xu,huilong <huilongx.xu@intel.com>
---
framework/project_dpdk.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index 7a4e4f7..3b91dd6 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -207,11 +207,11 @@ class DPDKdut(Dut):
self.send_expect("rm -rf %s" % r'./app/test/test_resource_c.res.o' , "#")
self.send_expect("rm -rf %s" % r'./app/test/test_resource_tar.res.o' , "#")
self.send_expect("rm -rf %s" % r'./app/test/test_pci_sysfs.res.o' , "#")
-
+ build_time = 120
# compile
out = self.send_expect("make -j %d install T=%s CC=gcc48" % (self.number_of_cores,
target),
- "#", 120)
+ "#", build_time)
#should not check test app compile status, because if test compile fail,
#all unit test can't exec, but others case will exec sucessfull
self.send_expect("make -j -C test/ CC=gcc48", "# ", build_time)
@@ -224,7 +224,7 @@ class DPDKdut(Dut):
self.logger.error("ERROR - try without '-j'")
# if Error try to execute make without -j option
out = self.send_expect("make install T=%s CC=gcc48" % target,
- "#", 120)
+ "#", build_time)
assert ("Error" not in out), "Compilation error..."
assert ("No rule to make" not in out), "No rule to make error..."
--
1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] define build_time in freebsd when compile dpdk
2017-03-06 2:13 [dts] [PATCH V1] define build_time in freebsd when compile dpdk xu,huilong
@ 2017-03-06 8:24 ` Liu, Yong
2017-03-06 8:29 ` Xu, HuilongX
0 siblings, 1 reply; 4+ messages in thread
From: Liu, Yong @ 2017-03-06 8:24 UTC (permalink / raw)
To: Xu, HuilongX, dts; +Cc: Xu, HuilongX
Huilong,
Look like build time still remain 120 seconds, what's this patch aim for?
Thanks,
Marvin
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> Sent: Monday, March 06, 2017 10:13 AM
> To: dts@dpdk.org
> Cc: Xu, HuilongX <huilongx.xu@intel.com>
> Subject: [dts] [PATCH V1] define build_time in freebsd when compile dpdk
>
> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> ---
> framework/project_dpdk.py | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
> index 7a4e4f7..3b91dd6 100644
> --- a/framework/project_dpdk.py
> +++ b/framework/project_dpdk.py
> @@ -207,11 +207,11 @@ class DPDKdut(Dut):
> self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_c.res.o' , "#")
> self.send_expect("rm -rf %s" %
> r'./app/test/test_resource_tar.res.o' , "#")
> self.send_expect("rm -rf %s" %
> r'./app/test/test_pci_sysfs.res.o' , "#")
> -
> + build_time = 120
> # compile
> out = self.send_expect("make -j %d install T=%s CC=gcc48" %
> (self.number_of_cores,
>
> target),
> - "#", 120)
> + "#", build_time)
> #should not check test app compile status, because if test
> compile fail,
> #all unit test can't exec, but others case will exec sucessfull
> self.send_expect("make -j -C test/ CC=gcc48", "# ", build_time)
> @@ -224,7 +224,7 @@ class DPDKdut(Dut):
> self.logger.error("ERROR - try without '-j'")
> # if Error try to execute make without -j option
> out = self.send_expect("make install T=%s CC=gcc48" % target,
> - "#", 120)
> + "#", build_time)
>
> assert ("Error" not in out), "Compilation error..."
> assert ("No rule to make" not in out), "No rule to make error..."
> --
> 1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] define build_time in freebsd when compile dpdk
2017-03-06 8:24 ` Liu, Yong
@ 2017-03-06 8:29 ` Xu, HuilongX
2017-03-06 8:33 ` Liu, Yong
0 siblings, 1 reply; 4+ messages in thread
From: Xu, HuilongX @ 2017-03-06 8:29 UTC (permalink / raw)
To: Liu, Yong, dts
Hi yong,
I use build_time in freebsb compile function in patch "[dts] [PATCH V1] fix dpdk test app compile issue", but I forget define build_time, only define in linux compile function. So dts will termination
When run any case on freebsd.
Thanks a lot
> -----Original Message-----
> From: Liu, Yong
> Sent: Monday, March 06, 2017 4:25 PM
> To: Xu, HuilongX; dts@dpdk.org
> Cc: Xu, HuilongX
> Subject: RE: [dts] [PATCH V1] define build_time in freebsd when compile
> dpdk
>
> Huilong,
> Look like build time still remain 120 seconds, what's this patch aim for?
>
> Thanks,
> Marvin
>
> > -----Original Message-----
> > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
> > Sent: Monday, March 06, 2017 10:13 AM
> > To: dts@dpdk.org
> > Cc: Xu, HuilongX <huilongx.xu@intel.com>
> > Subject: [dts] [PATCH V1] define build_time in freebsd when compile
> > dpdk
> >
> > Signed-off-by: xu,huilong <huilongx.xu@intel.com>
> > ---
> > framework/project_dpdk.py | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
> > index 7a4e4f7..3b91dd6 100644
> > --- a/framework/project_dpdk.py
> > +++ b/framework/project_dpdk.py
> > @@ -207,11 +207,11 @@ class DPDKdut(Dut):
> > self.send_expect("rm -rf %s" %
> > r'./app/test/test_resource_c.res.o' , "#")
> > self.send_expect("rm -rf %s" %
> > r'./app/test/test_resource_tar.res.o' , "#")
> > self.send_expect("rm -rf %s" %
> > r'./app/test/test_pci_sysfs.res.o' , "#")
> > -
> > + build_time = 120
> > # compile
> > out = self.send_expect("make -j %d install T=%s CC=gcc48" %
> > (self.number_of_cores,
> >
> > target),
> > - "#", 120)
> > + "#", build_time)
> > #should not check test app compile status, because if test
> > compile fail,
> > #all unit test can't exec, but others case will exec sucessfull
> > self.send_expect("make -j -C test/ CC=gcc48", "# ",
> > build_time) @@ -224,7 +224,7 @@ class DPDKdut(Dut):
> > self.logger.error("ERROR - try without '-j'")
> > # if Error try to execute make without -j option
> > out = self.send_expect("make install T=%s CC=gcc48" % target,
> > - "#", 120)
> > + "#", build_time)
> >
> > assert ("Error" not in out), "Compilation error..."
> > assert ("No rule to make" not in out), "No rule to make error..."
> > --
> > 1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] define build_time in freebsd when compile dpdk
2017-03-06 8:29 ` Xu, HuilongX
@ 2017-03-06 8:33 ` Liu, Yong
0 siblings, 0 replies; 4+ messages in thread
From: Liu, Yong @ 2017-03-06 8:33 UTC (permalink / raw)
To: Xu, HuilongX, dts
Thanks for clear, applied in.
On 03/06/2017 04:29 PM, Xu, HuilongX wrote:
> Hi yong,
> I use build_time in freebsb compile function in patch "[dts] [PATCH V1] fix dpdk test app compile issue", but I forget define build_time, only define in linux compile function. So dts will termination
> When run any case on freebsd.
> Thanks a lot
>> -----Original Message-----
>> From: Liu, Yong
>> Sent: Monday, March 06, 2017 4:25 PM
>> To: Xu, HuilongX; dts@dpdk.org
>> Cc: Xu, HuilongX
>> Subject: RE: [dts] [PATCH V1] define build_time in freebsd when compile
>> dpdk
>>
>> Huilong,
>> Look like build time still remain 120 seconds, what's this patch aim for?
>>
>> Thanks,
>> Marvin
>>
>>> -----Original Message-----
>>> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,huilong
>>> Sent: Monday, March 06, 2017 10:13 AM
>>> To: dts@dpdk.org
>>> Cc: Xu, HuilongX <huilongx.xu@intel.com>
>>> Subject: [dts] [PATCH V1] define build_time in freebsd when compile
>>> dpdk
>>>
>>> Signed-off-by: xu,huilong <huilongx.xu@intel.com>
>>> ---
>>> framework/project_dpdk.py | 6 +++---
>>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
>>> index 7a4e4f7..3b91dd6 100644
>>> --- a/framework/project_dpdk.py
>>> +++ b/framework/project_dpdk.py
>>> @@ -207,11 +207,11 @@ class DPDKdut(Dut):
>>> self.send_expect("rm -rf %s" %
>>> r'./app/test/test_resource_c.res.o' , "#")
>>> self.send_expect("rm -rf %s" %
>>> r'./app/test/test_resource_tar.res.o' , "#")
>>> self.send_expect("rm -rf %s" %
>>> r'./app/test/test_pci_sysfs.res.o' , "#")
>>> -
>>> + build_time = 120
>>> # compile
>>> out = self.send_expect("make -j %d install T=%s CC=gcc48" %
>>> (self.number_of_cores,
>>>
>>> target),
>>> - "#", 120)
>>> + "#", build_time)
>>> #should not check test app compile status, because if test
>>> compile fail,
>>> #all unit test can't exec, but others case will exec sucessfull
>>> self.send_expect("make -j -C test/ CC=gcc48", "# ",
>>> build_time) @@ -224,7 +224,7 @@ class DPDKdut(Dut):
>>> self.logger.error("ERROR - try without '-j'")
>>> # if Error try to execute make without -j option
>>> out = self.send_expect("make install T=%s CC=gcc48" % target,
>>> - "#", 120)
>>> + "#", build_time)
>>>
>>> assert ("Error" not in out), "Compilation error..."
>>> assert ("No rule to make" not in out), "No rule to make error..."
>>> --
>>> 1.9.3
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-06 8:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-06 2:13 [dts] [PATCH V1] define build_time in freebsd when compile dpdk xu,huilong
2017-03-06 8:24 ` Liu, Yong
2017-03-06 8:29 ` Xu, HuilongX
2017-03-06 8:33 ` 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).