[OE-core] [PATCHv2] test-dependencies: add simple script to detect missing or autoenabled dependencies

Chris Larson clarson at kergoth.com
Thu Jul 11 13:56:32 UTC 2013


On Thu, Jul 11, 2013 at 6:49 AM, Martin Jansa <martin.jansa at gmail.com>wrote:

> On Thu, Jul 11, 2013 at 06:28:04AM -0700, Chris Larson wrote:
> > On Thu, Jul 11, 2013 at 5:38 AM, Martin Jansa <martin.jansa at gmail.com
> >wrote:
> >
> > > On Wed, Jul 10, 2013 at 02:38:13PM +0200, Martin Jansa wrote:
> > > > Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
> > > > ---
> > > >  scripts/test-dependencies.sh | 253
> > > +++++++++++++++++++++++++++++++++++++++++++
> > > >  1 file changed, 253 insertions(+)
> > > >  create mode 100755 scripts/test-dependencies.sh
> > > >
> > > > +    echo "!!!Removing tmpdir \"$tmpdir\"!!!"
> > > > +    rm -rf $tmpdir/cache $tmpdir/deploy $tmpdir/pkgdata
> > > $tmpdir/sstate-control $tmpdir/stamps $tmpdir/sysroots $tmpdir/work
> > > $tmpdir/work-shared 2>/dev/null
> > >
> > > I'll send v3 which doesn't remove $tmpdir/cache between the builds, it
> > > takes too long already without reparsing all recipes every time.
> > >
> > > Originally I was removing it as work around for
> > >
> http://lists.openembedded.org/pipermail/bitbake-devel/2013-July/003624.html
> > > but that's not needed for master and people probably won't be changing
> > > PNBLACKLIST while this script is running.
> > >
> >
> > This is quite an interesting script. It looks quite similar to my
> > greedy-deps-tests[1] script, though you've taken it a step further in
> > adding builds #3 and #4.
> >
> > 1. https://github.com/kergoth/oe-test-scripts#oe-test-scripts
>
> pity I didn't know about your script before writing mine, it looks more
> elegant in python
>

Heh, it was shell at first, but I wanted to experiment. It ended up being a
good exercise in clean handling of SIGINT and SIGTERM.

I've started with #3 the idea to detect greedy came later
>
> Do you plan to integrate your script into oe-core? I'm fine with keeping
> my shell script locally until you do. Your python script would better fit
> in bitbake/oe environment and reloc-tests also looks useful.


I hadn't thought about it, but it's a good idea. Perhaps we can get the
best-of-both-worlds and integrate the features of both our scripts.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20130711/12cc2d24/attachment-0002.html>


More information about the Openembedded-core mailing list