From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 8/8] travis-ci: Add test.py for various qemu platforms
Date: Sat, 22 Oct 2016 08:56:48 -0400 [thread overview]
Message-ID: <20161022125648.GZ18591@bill-the-cat> (raw)
In-Reply-To: <a63d73bf-78fe-0fd6-00e2-82a8406212e8@wwwdotorg.org>
On Fri, Oct 21, 2016 at 12:24:07PM -0600, Stephen Warren wrote:
> On 10/20/2016 01:40 PM, Tom Rini wrote:
> >- Add a PPA for a more recent qemu (required for PowerPC to work)
> >- Add tests to run test.py for various QEMU platforms. This relies on
> > swarren's uboot-test-hooks repository to provide the abstractions.
>
> Overall, the series,
> Acked-by: Stephen Warren <swarren@nvidia.com>
>
> A few comments on this particular patch below:
>
> >diff --git a/.travis.yml b/.travis.yml
>
> > addons:
> > apt:
> >+ sources:
> >+ - sourceline: 'ppa:gns3/qemu'
>
> Have you co-ordinated with "qns3" to ensure that PPA is always going
> to be available, and host binaries for Ubuntuy 16.04 (some PPAs
> eventually disappear as the owner moves on to other things, or
> change the set of distro releases they support at the owner's whim).
I don't like this part either. I couldn't find an "official" PPA to
provide a newer qemu nor does it appear to be in the official backports
channel either. My current plan is that if something happens to the PPA
I'll have to host one myself.
> >+ # Clone uboot-test-hooks
> >+ - git clone --depth=1 git://github.com/swarren/uboot-test-hooks.git /tmp/uboot-test-hooks
>
> Does it make sense to rely on my copy of the repo being around all
> the time? I have no intention of removing it, but when I created it
> I'd assumed others would create their own clones for their own
> infra-structure. I wonder if all the dependencies for U-Boot's
> testing should be hosted on U-Boot infra-structure?
A good point. The way I've been thinking of it is that we also need a
repo with as many and varied configs as possible, which has become yours
:). That said, we could move a copy of this over to the u-boot account
on github if you'd like.
> That all said, this should be fine; just something to ponder.
>
> >+ - ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
>
> It may be useful to add the following too:
>
> - ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
>
> That way, if we ever need per-board test configuration files, the
> path to access them will already be available.
A good point. I think we could get the network tests going, maybe with
a little re-work to dynamically hash the file from the host side? But
that's an aside.
> >+ - env:
> >+ - CROSS_COMPILE="/usr/bin/arm-linux-gnueabihf-"
> >+ script:
> >+ - ./test/py/test.py --bd vexpress_ca15_tc2 --id qemu --build;
> >+ ./test/py/test.py --bd vexpress_ca9x4 --id qemu --build;
> >+ ./test/py/test.py --bd integratorcp_cm926ejs --id qemu --build;
>
> Does it make sense to make that 3 separate scripts? I assume that
> would (a) allow the individual status of the 3 test.py invocations
> to be seen separately (b) might allow/cause travis-ci to run them in
> parallel; I'm not sure if this Travis config file is a sequential
> list of commands, or a list of potentially parallel actions.
So, the way travis-ci works is that you can (and we do) split tasks up
to run in parallel. The hunk above is a series to run in sequence on
the same host. The downside to moving this to parallel is the amount of
duplication you need in each stanza. We could fix that (at least in the
case of non-buildman-fetched toolchains) if test.py used buildman to
build, as that will determine CROSS_COMPILE correctly from the default
.buildman file we create earlier on. Thanks!
--
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/20161022/b925ed29/attachment.sig>
next prev parent reply other threads:[~2016-10-22 12:56 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-20 19:25 [U-Boot] [PATCH 0/8] Various travis-ci improvements Tom Rini
2016-10-20 19:25 ` [U-Boot] [PATCH 1/8] test/py: ensure a log section exists for skipped tests Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 2/8] travis-ci: Switch to Ubuntu 14.04 'Trusty Tahr' Tom Rini
2016-10-21 7:27 ` Heiko Schocher
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 3/8] travis-ci: Use a git URI for dtc.git Tom Rini
2016-10-21 7:32 ` Heiko Schocher
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 4/8] travis-ci: Do not make buildman warnings fatal Tom Rini
2016-10-21 7:39 ` Heiko Schocher
2016-10-21 11:19 ` Tom Rini
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 5/8] travis-ci: Update toolchain and buildman usage Tom Rini
2016-10-21 7:40 ` Heiko Schocher
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 6/8] travis-ci: Add more architectures Tom Rini
2016-10-21 7:41 ` Heiko Schocher
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 7/8] travis-ci: Drop 'TEST_CMD' Tom Rini
2016-10-21 7:54 ` Heiko Schocher
2016-10-24 15:23 ` Tom Rini
2016-10-20 19:26 ` [U-Boot] [PATCH 8/8] travis-ci: Add test.py for various qemu platforms Tom Rini
2016-10-20 19:40 ` [U-Boot] [PATCH v2 " Tom Rini
2016-10-21 18:24 ` Stephen Warren
2016-10-22 12:56 ` Tom Rini [this message]
2016-10-24 22:21 ` Stephen Warren
2016-10-24 22:46 ` Tom Rini
2016-10-24 15:23 ` Tom Rini
2016-10-21 9:22 ` [U-Boot] [PATCH " Heiko Schocher
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=20161022125648.GZ18591@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox