[U-Boot] [PATCH 1/1] test/py: provide example scripts for integrating qemu

Tom Rini trini at konsulko.com
Mon Sep 18 17:48:45 UTC 2017


On Mon, Sep 18, 2017 at 11:33:01AM -0600, Stephen Warren wrote:
> On 09/17/2017 01:32 PM, Heinrich Schuchardt wrote:
> >The necessary parameters for running Python tests on qemu are
> >tediouus to find.
> >
> >The patch adds examples for u-boot-test-console and
> >u-boot-test-reset.
> 
> This README doesn't contain examples for other cases. I'm not sure
> whether we should add them for qemu either. Instead, does it make
> sense to augment my repo, which already contains a variety of
> examples, and is mentioned in the README?
> 
> https://github.com/swarren/uboot-test-hooks
> 
> Tom Rini already added some qemu examples to that repo, although
> they use much simpler command-lines than in the examples in this
> patch. Perhaps that's because they fire off a new qemu instance
> every time the virtual system is reset, whereas yours seem to create
> one qemu instance and then reset it multiple times. If so, your
> scripts are more how I imagined it would work; perhaps you could
> update Tom's scripts?

I was thinking about this too.  Heinrich's example is along the lines of
"adapt QEMU to provide what test.py wants" while the uboot-test-hooks
QEMU parts are more along the lines of "plumb QEMU into the frameworks
for real HW too".  What I like about the latter is that I leverage
information from my real HW too (tftp stuff, etc).  Why I think we
should also apply Heinrich's patch, or maybe a v2 with a few wording
tweaks, is that it's less overhead and easier for people to setup if
they just want QEMU available for testing.  Say testing while on the
road at some conference.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170918/206dbad9/attachment.sig>


More information about the U-Boot mailing list