qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Richard Henderson <rth@twiddle.net>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PULL 00/13] AVR target
Date: Thu, 22 Sep 2016 17:29:17 +0100	[thread overview]
Message-ID: <CAFEAcA_z1HpuqSC2RY_rM+zHwKSKC_TJZ-OOMj8OKV_P6z-cPQ@mail.gmail.com> (raw)
In-Reply-To: <0539b637-5e24-279a-6c9b-eb151ce32140@twiddle.net>

On 22 September 2016 at 17:07, Richard Henderson <rth@twiddle.net> wrote:
> On 09/22/2016 07:39 AM, Peter Maydell wrote:
>>
>> Fails 'make check' on all platforms:
>>
>> TEST: tests/qom-test... (pid=7359)
>>   /avr/qom/none:                                                       OK
>>   /avr/qom/sample:
>> qemu-system-avr: Could not find flash image file '(null)'
>> Broken pipe
>> FAIL
>
>
> Ho hum.  I never considered that not touching tests/ would create new tests.
>
> For the record, how does arm handle the case of no -bios given?  Just
> blindly execute 0's without a warning?  Would it be better to allow
> execution of 0's or blacklist?

The usual approach to this is that you add "&& !qtest_enabled()" to the
check for "should we bomb out?". (see for instance mips_malta.c).
The qtest framework isn't ever going to try to execute anything,
it just creates the system and sets itself up so test cases can
prod it, and so there's no need for there to be executable code
present. (The purpose of the qom-test test is "check that the board
will at least instantiate itself without falling over"; you
can also write tests to do more interesting things.)

For actual-running of boards, ARM boards mostly will happily let you
run a pile of zeroes. Some other boards will complain if you
didn't provide a kernel or a bios image.

PS: probably better to avoid printf("...%s...", NULL) too.

thanks
-- PMM

  reply	other threads:[~2016-09-22 16:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-20 19:54 [Qemu-devel] [PULL 00/13] AVR target Richard Henderson
2016-09-22  6:40 ` Thomas Huth
2016-09-22 16:10   ` Richard Henderson
2016-09-22 19:20     ` Bastian Koppelmann
2016-09-22 14:39 ` Peter Maydell
2016-09-22 16:07   ` Richard Henderson
2016-09-22 16:29     ` Peter Maydell [this message]
2016-09-22 19:48       ` Richard Henderson

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=CAFEAcA_z1HpuqSC2RY_rM+zHwKSKC_TJZ-OOMj8OKV_P6z-cPQ@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).