All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chong Lu <Chong.Lu@windriver.com>
To: Tudor Florea <Tudor.Florea@enea.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] ethtool: fix ptest execution failure
Date: Tue, 27 May 2014 09:33:23 +0800	[thread overview]
Message-ID: <5383EB63.40208@windriver.com> (raw)
In-Reply-To: <26724FB0BFCB3D4C91BDE184751AA3A428A495A1@SESTOEX04.enea.se>


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
>



      reply	other threads:[~2014-05-27  1:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5383EB63.40208@windriver.com \
    --to=chong.lu@windriver.com \
    --cc=Tudor.Florea@enea.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.