From: Thomas Huth <thuth@redhat.com>
To: Romain Naour <romain.naour@gmail.com>,
qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH] meson: add tests option
Date: Tue, 2 Mar 2021 11:22:57 +0100 [thread overview]
Message-ID: <eabd866e-71c5-3ac3-7688-0318fc758f94@redhat.com> (raw)
In-Reply-To: <20210226220715.3103110-1-romain.naour@gmail.com>
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.
Anyway, a switch to disable the tests completely could still be handy in
some cases, so FWIW:
Acked-by: Thomas Huth <thuth@redhat.com>
> To workaround this issue, add an new meson option to
> disable tests while building Qemu.
>
> Fixes:
> http://autobuild.buildroot.net/results/53f5d8baa994d599b9da013ee643b82353366ec3/build-end.log
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> configure | 7 +++++++
> meson.build | 6 +++++-
> meson_options.txt | 3 +++
> 3 files changed, 15 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index a79b3746d4..cd114f4b9e 100755
> --- a/configure
> +++ b/configure
> @@ -464,6 +464,7 @@ gettext="auto"
> fuse="auto"
> fuse_lseek="auto"
> multiprocess="no"
> +tests="auto"
>
> malloc_trim="auto"
>
> @@ -1562,6 +1563,10 @@ for opt do
> ;;
> --disable-multiprocess) multiprocess="no"
> ;;
> + --disable-tests) tests="disabled"
> + ;;
> + --enable-tests) tests="enabled"
> + ;;
> *)
> echo "ERROR: unknown option $opt"
> echo "Try '$0 --help' for more information"
> @@ -1915,6 +1920,7 @@ disabled with --disable-FEATURE, default is enabled if available
> fuse FUSE block device export
> fuse-lseek SEEK_HOLE/SEEK_DATA support for FUSE exports
> multiprocess Multiprocess QEMU support
> + tests build tests
>
> NOTE: The object files are built at the place where configure is launched
> EOF
> @@ -6428,6 +6434,7 @@ NINJA=$ninja $meson setup \
> -Dfuse=$fuse -Dfuse_lseek=$fuse_lseek -Dguest_agent_msi=$guest_agent_msi \
> $(if test "$default_features" = no; then echo "-Dauto_features=disabled"; fi) \
> -Dtcg_interpreter=$tcg_interpreter \
> + -Dtests=$tests \
> $cross_arg \
> "$PWD" "$source_path"
>
> diff --git a/meson.build b/meson.build
> index 05a67c20d9..2d7cbc0fbd 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -2341,7 +2341,11 @@ subdir('scripts')
> subdir('tools')
> subdir('pc-bios')
> subdir('docs')
> -subdir('tests')
> +
> +if get_option('tests').enabled()
> + subdir('tests')
> +endif
> +
> if gtk.found()
> subdir('po')
> endif
> diff --git a/meson_options.txt b/meson_options.txt
> index 675a9c500a..be30ad5450 100644
> --- a/meson_options.txt
> +++ b/meson_options.txt
> @@ -114,6 +114,9 @@ option('virtfs', type: 'feature', value: 'auto',
> option('virtiofsd', type: 'feature', value: 'auto',
> description: 'build virtiofs daemon (virtiofsd)')
>
> +option('tests', type : 'feature', value : 'auto',
> + description: 'Tests build support')
> +
> option('capstone', type: 'combo', value: 'auto',
> choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
> description: 'Whether and how to find the capstone library')
>
next prev parent reply other threads:[~2021-03-02 10:23 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 [this message]
2021-03-02 11:08 ` Paolo Bonzini
2021-03-02 21:14 ` Romain Naour
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=eabd866e-71c5-3ac3-7688-0318fc758f94@redhat.com \
--to=thuth@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=romain.naour@gmail.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).