From: Romain Naour <romain.naour@gmail.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
Thomas Huth <thuth@redhat.com>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] meson: add tests option
Date: Tue, 2 Mar 2021 22:14:22 +0100 [thread overview]
Message-ID: <8d5714d1-d92b-60fc-531f-73eb05852c8f@gmail.com> (raw)
In-Reply-To: <14d34883-5e97-972d-87d1-49b47324cac5@redhat.com>
Hello,
Le 02/03/2021 à 12:08, Paolo Bonzini a écrit :
> On 02/03/21 11:22, Thomas Huth wrote:
>> On 26/02/2021 23.07, Romain Naour wrote:
>>> tests/fp/fp-bench.c use fenv.h that is not always provided
>>> by the libc (uClibc).
>>
>> For such problem it might be better to check for the availability of the
>> header and then to only disable the single test that depends on it if the
>> header is not available.
You're right, I thought about adding a header check but I noticed that was no
option to disable all tests. Buildroot try to avoid as much as possible building
tests program.
>>
>> Anyway, a switch to disable the tests completely could still be handy in some
>> cases, so FWIW:
It can save some build time:
qemu build with tests disabled
real 3m27,310s
user 19m56,887s
sys 2m1,738s
qemu build with tests enabled
real 4m0,638s
user 23m34,963s
sys 2m32,944s
>>
>> Acked-by: Thomas Huth <thuth@redhat.com>
>
> I disagree, without a use case the right thing to do is to check for fenv.h.
> It's as easy as this:
Is it ok if I take your patch to disable fp tests when fenv.h is missing and
resend my patch with an updated commit log to disable all tests to save some
build time?
Best regards,
Romain
>
> diff --git a/tests/meson.build b/tests/meson.build
> index 0c939f89f7..3b9b2f0483 100644
> --- a/tests/meson.build
> +++ b/tests/meson.build
> @@ -281,7 +281,7 @@ test('decodetree', sh,
> workdir: meson.current_source_dir() / 'decode',
> suite: 'decodetree')
>
> -if 'CONFIG_TCG' in config_all
> +if 'CONFIG_TCG' in config_all and cc.has_header('fenv.h')
> subdir('fp')
> endif
>
> Thanks,
>
> Paolo
>
next prev parent reply other threads:[~2021-03-02 21:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-26 22:07 [PATCH] meson: add tests option Romain Naour
2021-03-02 10:22 ` Thomas Huth
2021-03-02 11:08 ` Paolo Bonzini
2021-03-02 21:14 ` Romain Naour [this message]
2021-03-03 12:22 ` Paolo Bonzini
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=8d5714d1-d92b-60fc-531f-73eb05852c8f@gmail.com \
--to=romain.naour@gmail.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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).