All of lore.kernel.org
 help / color / mirror / Atom feed
From: Etienne Carriere <etienne.carriere@linaro.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 7/8] testing: test can use the locally generated qemu host tool
Date: Fri, 22 Mar 2019 11:06:34 +0100	[thread overview]
Message-ID: <CAN5uoS_LOam9qZ37TdOkfkwAEbuyZZ+nCgHcejEi3nxP00BjfA@mail.gmail.com> (raw)
In-Reply-To: <3979fa63-09f6-c6a9-a90e-a1ba5fa27230@mind.be>

On Tue, 19 Mar 2019 at 23:03, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 19/03/2019 08:05, Etienne Carriere wrote:
> > I made this to allow test_optee to use the qemu config from the platform.
> > But I wonder if it would be more suitable to have an generic option to
> > script run-tests to build the emulator within the test config.
>
>  That would indeed be a better idea IMO.
>
> > -        qemu_cmd = ["qemu-system-{}".format(qemu_arch),
> > +        if local:
> > +            basedir = os.path.join(self.builddir, "host/bin/")
> > +        else:
> > +            basedir = ""
> > +
> > +        qemu_cmd = [basedir + "qemu-system-{}".format(qemu_arch),
> >                      "-serial", "stdio",
> >                      "-display", "none"]
>
>  Instead of constructing it like this, I think it would be simpler to always add
> output/host/bin to PATH. Unfortunately, however, pexpect only respects the PATH
> setting of the env argument since version 4.2.0 [1], and we can't rely on the
> system-installed pexpect to have that version. So you have to mess about with
> os.environ (which you'd want to restore to the original after running qemu).

Playing with the PATH is not very handy and could make the test to use
other thing in output/host/bin than only qemu.
Please see proposal in v3 (here https://patchwork.ozlabs.org/patch/1061031/).

Regards,
etienne

>
>  Regards,
>  Arnout
>
> [1] https://github.com/pexpect/pexpect/pull/348

  reply	other threads:[~2019-03-22 10:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18 23:21 [Buildroot] [PATCH v2 1/8] boot/arm-trusted-firmware: support 32bit Arm targets Etienne Carriere
2019-03-18 23:21 ` [Buildroot] [PATCH v2 2/8] boot/arm-trusted-firmware: in-tree and OP-TEE BL32 Etienne Carriere
2019-03-20 21:54   ` Thomas Petazzoni
2019-03-18 23:21 ` [Buildroot] [PATCH v2 3/8] boot/arm-trusted-firmware: support debug mode Etienne Carriere
2019-03-20 21:59   ` Thomas Petazzoni
2019-03-18 23:21 ` [Buildroot] [PATCH v2 4/8] boot/arm-trusted-firmware: support alternate image files Etienne Carriere
2019-03-20 22:03   ` Thomas Petazzoni
2019-03-21  8:06     ` Etienne Carriere
2019-03-18 23:21 ` [Buildroot] [PATCH v2 5/8] package/optee-test: fix dependency in TAs build Etienne Carriere
2019-03-20 22:03   ` Thomas Petazzoni
2019-03-18 23:21 ` [Buildroot] [PATCH v2 6/8] configs/qemu_armv7a_tz_virt: Armv7-A emulation with TrustZone services Etienne Carriere
2019-03-19 22:00   ` Arnout Vandecappelle
2019-03-20  8:49     ` Etienne Carriere
2019-03-20  9:20       ` Arnout Vandecappelle
2019-03-20 12:06         ` Etienne Carriere
2019-03-18 23:21 ` [Buildroot] [PATCH v2 7/8] testing: test can use the locally generated qemu host tool Etienne Carriere
2019-03-19  7:05   ` Etienne Carriere
2019-03-19 22:03     ` Arnout Vandecappelle
2019-03-22 10:06       ` Etienne Carriere [this message]
2019-03-18 23:21 ` [Buildroot] [PATCH v2 8/8] support/testing: test_optee.py: test optee boot and testsuite Etienne Carriere
2019-03-20 21:34 ` [Buildroot] [PATCH v2 1/8] boot/arm-trusted-firmware: support 32bit Arm targets Thomas Petazzoni

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=CAN5uoS_LOam9qZ37TdOkfkwAEbuyZZ+nCgHcejEi3nxP00BjfA@mail.gmail.com \
    --to=etienne.carriere@linaro.org \
    --cc=buildroot@busybox.net \
    /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.