* [PATCH 0/1] ethtool: fix ptest execution failure
@ 2014-05-26 9:21 Chong Lu
2014-05-26 9:21 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 4+ messages in thread
From: Chong Lu @ 2014-05-26 9:21 UTC (permalink / raw)
To: openembedded-core
root@qemux86:/usr/lib/ethtool/ptest# ./run-ptest
make[1]: Entering directory '/usr/lib/ethtool/ptest'
PASS: test-cmdline
PASS: test-features
============================================================================
Testsuite summary for ethtool 3.14
============================================================================
# TOTAL: 2
# PASS: 2
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[1]: Leaving directory '/usr/lib/ethtool/ptest'
The following changes since commit 894df445fa71a170397c6e0b4960a89ef20a4230:
guile: Update to 2.0.11 version (2014-05-21 19:50:21 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/ethtool
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/ethtool
Chong Lu (1):
ethtool: fix ptest execution failure
meta/recipes-extended/ethtool/ethtool/run-ptest | 2 +-
meta/recipes-extended/ethtool/ethtool_3.14.bb | 16 ++++++++++------
2 files changed, 11 insertions(+), 7 deletions(-)
--
1.8.1.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] ethtool: fix ptest execution failure
2014-05-26 9:21 [PATCH 0/1] ethtool: fix ptest execution failure Chong Lu
@ 2014-05-26 9:21 ` Chong Lu
2014-05-26 16:02 ` Tudor Florea
0 siblings, 1 reply; 4+ messages in thread
From: Chong Lu @ 2014-05-26 9:21 UTC (permalink / raw)
To: openembedded-core
Modify ptest suite to make it enabled on new version.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-extended/ethtool/ethtool/run-ptest | 2 +-
meta/recipes-extended/ethtool/ethtool_3.14.bb | 16 ++++++++++------
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-extended/ethtool/ethtool/run-ptest b/meta/recipes-extended/ethtool/ethtool/run-ptest
index 1e245da..a359387 100644
--- a/meta/recipes-extended/ethtool/ethtool/run-ptest
+++ b/meta/recipes-extended/ethtool/ethtool/run-ptest
@@ -1,2 +1,2 @@
#!/bin/sh
-make -k runtest-TESTS
+make -k check-TESTS
diff --git a/meta/recipes-extended/ethtool/ethtool_3.14.bb b/meta/recipes-extended/ethtool/ethtool_3.14.bb
index 2a3ca70..9729f65 100644
--- a/meta/recipes-extended/ethtool/ethtool_3.14.bb
+++ b/meta/recipes-extended/ethtool/ethtool_3.14.bb
@@ -13,16 +13,20 @@ SRC_URI[md5sum] = "997e20c25c43ad5800f8ae3204455a8a"
SRC_URI[sha256sum] = "b1a988d6e397bd9d5d73cfd64329f85121936a050174bbfe90f8701fd893a1df"
inherit autotools ptest
-RDEPENDS_${PN}-ptest += "make"
+RDEPENDS_${PN}-ptest += "make bash gawk"
do_compile_ptest() {
oe_runmake test-cmdline test-features
}
do_install_ptest () {
- cp ${B}/Makefile ${D}${PTEST_PATH}
- install ${B}/test-cmdline ${D}${PTEST_PATH}
- install ${B}/test-features ${D}${PTEST_PATH}
- install ${B}/ethtool ${D}${PTEST_PATH}/ethtool
- sed -i 's/^Makefile/_Makefile/' ${D}${PTEST_PATH}/Makefile
+ for i in Makefile test-cmdline test-features; do \
+ install ${B}/$i ${D}${PTEST_PATH}; done
+ install ${S}/test-driver ${D}${PTEST_PATH}
+ sed -e 's/^Makefile/_Makefile/' \
+ -e 's/^test_cmdline_OBJECTS/#test_cmdline_OBJECTS/' \
+ -e 's/^test_features_OBJECTS/#test_features_OBJECTS/' \
+ -e 's/^top_srcdir = \(.*\)/top_srcdir = ./' \
+ -e '/^all:/,+1d' \
+ -i ${D}${PTEST_PATH}/Makefile
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] ethtool: fix ptest execution failure
2014-05-26 9:21 ` [PATCH 1/1] " Chong Lu
@ 2014-05-26 16:02 ` Tudor Florea
2014-05-27 1:33 ` Chong Lu
0 siblings, 1 reply; 4+ messages in thread
From: Tudor Florea @ 2014-05-26 16:02 UTC (permalink / raw)
To: Chong Lu, openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf
> Of Chong Lu
> Sent: Monday, May 26, 2014 12:22
> To: openembedded-core@lists.openembedded.org
> Subject: [OE-core] [PATCH 1/1] ethtool: fix ptest execution failure
>
> Modify ptest suite to make it enabled on new version.
>
> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
> ---
> meta/recipes-extended/ethtool/ethtool/run-ptest | 2 +-
> meta/recipes-extended/ethtool/ethtool_3.14.bb | 16 ++++++++++------
> 2 files changed, 11 insertions(+), 7 deletions(-)
>
> diff --git a/meta/recipes-extended/ethtool/ethtool/run-ptest
> b/meta/recipes-extended/ethtool/ethtool/run-ptest
> index 1e245da..a359387 100644
> --- a/meta/recipes-extended/ethtool/ethtool/run-ptest
> +++ b/meta/recipes-extended/ethtool/ethtool/run-ptest
> @@ -1,2 +1,2 @@
> #!/bin/sh
> -make -k runtest-TESTS
> +make -k check-TESTS
> diff --git a/meta/recipes-extended/ethtool/ethtool_3.14.bb
> b/meta/recipes-extended/ethtool/ethtool_3.14.bb
> index 2a3ca70..9729f65 100644
> --- a/meta/recipes-extended/ethtool/ethtool_3.14.bb
> +++ b/meta/recipes-extended/ethtool/ethtool_3.14.bb
> @@ -13,16 +13,20 @@ SRC_URI[md5sum] =
> "997e20c25c43ad5800f8ae3204455a8a"
> SRC_URI[sha256sum] =
> "b1a988d6e397bd9d5d73cfd64329f85121936a050174bbfe90f8701fd893a1df"
>
> inherit autotools ptest
> -RDEPENDS_${PN}-ptest += "make"
> +RDEPENDS_${PN}-ptest += "make bash gawk"
Isn't possible to avoid bash and gawk dependency here?
Regards,
Tudor
>
> do_compile_ptest() {
> oe_runmake test-cmdline test-features
> }
>
> do_install_ptest () {
> - cp ${B}/Makefile ${D}${PTEST_PATH}
> - install ${B}/test-cmdline ${D}${PTEST_PATH}
> - install ${B}/test-features ${D}${PTEST_PATH}
> - install ${B}/ethtool ${D}${PTEST_PATH}/ethtool
> - sed -i 's/^Makefile/_Makefile/' ${D}${PTEST_PATH}/Makefile
> + for i in Makefile test-cmdline test-features; do \
> + install ${B}/$i ${D}${PTEST_PATH}; done
> + install ${S}/test-driver ${D}${PTEST_PATH}
> + sed -e 's/^Makefile/_Makefile/' \
> + -e 's/^test_cmdline_OBJECTS/#test_cmdline_OBJECTS/' \
> + -e 's/^test_features_OBJECTS/#test_features_OBJECTS/' \
> + -e 's/^top_srcdir = \(.*\)/top_srcdir = ./' \
> + -e '/^all:/,+1d' \
> + -i ${D}${PTEST_PATH}/Makefile
> }
> --
> 1.8.1.2
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] ethtool: fix ptest execution failure
2014-05-26 16:02 ` Tudor Florea
@ 2014-05-27 1:33 ` Chong Lu
0 siblings, 0 replies; 4+ messages in thread
From: Chong Lu @ 2014-05-27 1:33 UTC (permalink / raw)
To: Tudor Florea, openembedded-core@lists.openembedded.org
On 05/27/2014 12:02 AM, Tudor Florea wrote:
>
>> -----Original Message-----
>> From: openembedded-core-bounces@lists.openembedded.org
>> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf
>> Of Chong Lu
>> Sent: Monday, May 26, 2014 12:22
>> To: openembedded-core@lists.openembedded.org
>> Subject: [OE-core] [PATCH 1/1] ethtool: fix ptest execution failure
>>
>> Modify ptest suite to make it enabled on new version.
>>
>> Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
>> ---
>> meta/recipes-extended/ethtool/ethtool/run-ptest | 2 +-
>> meta/recipes-extended/ethtool/ethtool_3.14.bb | 16 ++++++++++------
>> 2 files changed, 11 insertions(+), 7 deletions(-)
>>
>> diff --git a/meta/recipes-extended/ethtool/ethtool/run-ptest
>> b/meta/recipes-extended/ethtool/ethtool/run-ptest
>> index 1e245da..a359387 100644
>> --- a/meta/recipes-extended/ethtool/ethtool/run-ptest
>> +++ b/meta/recipes-extended/ethtool/ethtool/run-ptest
>> @@ -1,2 +1,2 @@
>> #!/bin/sh
>> -make -k runtest-TESTS
>> +make -k check-TESTS
>> diff --git a/meta/recipes-extended/ethtool/ethtool_3.14.bb
>> b/meta/recipes-extended/ethtool/ethtool_3.14.bb
>> index 2a3ca70..9729f65 100644
>> --- a/meta/recipes-extended/ethtool/ethtool_3.14.bb
>> +++ b/meta/recipes-extended/ethtool/ethtool_3.14.bb
>> @@ -13,16 +13,20 @@ SRC_URI[md5sum] =
>> "997e20c25c43ad5800f8ae3204455a8a"
>> SRC_URI[sha256sum] =
>> "b1a988d6e397bd9d5d73cfd64329f85121936a050174bbfe90f8701fd893a1df"
>>
>> inherit autotools ptest
>> -RDEPENDS_${PN}-ptest += "make"
>> +RDEPENDS_${PN}-ptest += "make bash gawk"
> Isn't possible to avoid bash and gawk dependency here?
> Regards,
> Tudor
Ok, it's possible. But it needs to change Makefile more.
I will resend a V2.
Best Regards
Chong
>> do_compile_ptest() {
>> oe_runmake test-cmdline test-features
>> }
>>
>> do_install_ptest () {
>> - cp ${B}/Makefile ${D}${PTEST_PATH}
>> - install ${B}/test-cmdline ${D}${PTEST_PATH}
>> - install ${B}/test-features ${D}${PTEST_PATH}
>> - install ${B}/ethtool ${D}${PTEST_PATH}/ethtool
>> - sed -i 's/^Makefile/_Makefile/' ${D}${PTEST_PATH}/Makefile
>> + for i in Makefile test-cmdline test-features; do \
>> + install ${B}/$i ${D}${PTEST_PATH}; done
>> + install ${S}/test-driver ${D}${PTEST_PATH}
>> + sed -e 's/^Makefile/_Makefile/' \
>> + -e 's/^test_cmdline_OBJECTS/#test_cmdline_OBJECTS/' \
>> + -e 's/^test_features_OBJECTS/#test_features_OBJECTS/' \
>> + -e 's/^top_srcdir = \(.*\)/top_srcdir = ./' \
>> + -e '/^all:/,+1d' \
>> + -i ${D}${PTEST_PATH}/Makefile
>> }
>> --
>> 1.8.1.2
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-27 1:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-26 9:21 [PATCH 0/1] ethtool: fix ptest execution failure Chong Lu
2014-05-26 9:21 ` [PATCH 1/1] " Chong Lu
2014-05-26 16:02 ` Tudor Florea
2014-05-27 1:33 ` Chong Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox