2021-02-20 18:21:02 +01:00
|
|
|
From c24f6cc8f847a4f90cd8fe0f94604862c5ac4a5e Mon Sep 17 00:00:00 2001
|
|
|
|
From: Romain Naour <romain.naour@gmail.com>
|
|
|
|
Date: Mon, 21 Dec 2020 22:12:14 +0100
|
|
|
|
Subject: [PATCH] meson: add tests option
|
|
|
|
|
|
|
|
tests/fp/fp-bench.c use fenv.h that is not always provided
|
|
|
|
by the libc (uClibc).
|
|
|
|
|
|
|
|
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>
|
2021-05-07 19:01:01 +02:00
|
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
|
|
Refresh for 6.0.0
|
2021-02-20 18:21:02 +01:00
|
|
|
---
|
|
|
|
configure | 7 +++++++
|
|
|
|
meson.build | 5 ++++-
|
|
|
|
meson_options.txt | 2 ++
|
|
|
|
3 files changed, 13 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/configure b/configure
|
|
|
|
index 18c26e0389..7cceae4418 100755
|
|
|
|
--- a/configure
|
|
|
|
+++ b/configure
|
2021-05-07 19:01:01 +02:00
|
|
|
@@ -460,6 +460,7 @@ meson=""
|
2021-02-20 18:21:02 +01:00
|
|
|
ninja=""
|
|
|
|
skip_meson=no
|
2021-05-07 19:01:01 +02:00
|
|
|
gettext="auto"
|
2021-02-20 18:21:02 +01:00
|
|
|
+tests="auto"
|
2021-05-07 19:01:01 +02:00
|
|
|
fuse="auto"
|
|
|
|
fuse_lseek="auto"
|
|
|
|
multiprocess="auto"
|
|
|
|
@@ -1549,6 +1550,10 @@ for opt do
|
2021-02-20 18:21:02 +01:00
|
|
|
;;
|
|
|
|
--disable-libdaxctl) libdaxctl=no
|
|
|
|
;;
|
|
|
|
+ --disable-tests) tests="disabled"
|
|
|
|
+ ;;
|
|
|
|
+ --enable-tests) tests="enabled"
|
|
|
|
+ ;;
|
2021-05-07 19:01:01 +02:00
|
|
|
--enable-fuse) fuse="enabled"
|
|
|
|
;;
|
|
|
|
--disable-fuse) fuse="disabled"
|
|
|
|
@@ -1915,6 +1920,7 @@ disabled with --disable-FEATURE, default is enabled if available
|
2021-02-20 18:21:02 +01:00
|
|
|
xkbcommon xkbcommon support
|
|
|
|
rng-none dummy RNG, avoid using /dev/(u)random and getrandom()
|
|
|
|
libdaxctl libdaxctl support
|
|
|
|
+ tests build tests
|
2021-05-07 19:01:01 +02:00
|
|
|
fuse FUSE block device export
|
|
|
|
fuse-lseek SEEK_HOLE/SEEK_DATA support for FUSE exports
|
|
|
|
multiprocess Out of process device emulation support
|
|
|
|
@@ -6422,6 +6428,7 @@ NINJA=$ninja $meson setup \
|
|
|
|
-Dzstd=$zstd -Dseccomp=$seccomp -Dvirtfs=$virtfs -Dcap_ng=$cap_ng \
|
|
|
|
-Dattr=$attr -Ddefault_devices=$default_devices \
|
2021-02-20 18:21:02 +01:00
|
|
|
-Ddocs=$docs -Dsphinx_build=$sphinx_build -Dinstall_blobs=$blobs \
|
|
|
|
+ -Dtests=$tests \
|
2021-05-07 19:01:01 +02:00
|
|
|
-Dvhost_user_blk_server=$vhost_user_blk_server -Dmultiprocess=$multiprocess \
|
|
|
|
-Dfuse=$fuse -Dfuse_lseek=$fuse_lseek -Dguest_agent_msi=$guest_agent_msi \
|
|
|
|
$(if test "$default_features" = no; then echo "-Dauto_features=disabled"; fi) \
|
2021-02-20 18:21:02 +01:00
|
|
|
diff --git a/meson.build b/meson.build
|
|
|
|
index e3386196ba..7f4efdc347 100644
|
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2021-05-07 19:01:01 +02:00
|
|
|
@@ -2381,7 +2381,10 @@ subdir('scripts')
|
2021-02-20 18:21:02 +01:00
|
|
|
subdir('tools')
|
|
|
|
subdir('pc-bios')
|
|
|
|
subdir('docs')
|
|
|
|
-subdir('tests')
|
|
|
|
+if get_option('tests').enabled()
|
|
|
|
+ subdir('tests')
|
|
|
|
+endif
|
|
|
|
+
|
2021-05-07 19:01:01 +02:00
|
|
|
if gtk.found()
|
2021-02-20 18:21:02 +01:00
|
|
|
subdir('po')
|
|
|
|
endif
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
|
|
index f6f64785fe..81bffbfe87 100644
|
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
2021-05-07 19:01:01 +02:00
|
|
|
@@ -111,6 +111,8 @@ option('fuse_lseek', type : 'feature', value : 'auto',
|
|
|
|
|
2021-02-20 18:21:02 +01:00
|
|
|
option('vhost_user_blk_server', type: 'feature', value: 'auto',
|
|
|
|
description: 'build vhost-user-blk server')
|
|
|
|
+option('tests', type : 'feature', value : 'auto',
|
|
|
|
+ description: 'Tests build support')
|
2021-05-07 19:01:01 +02:00
|
|
|
option('virtfs', type: 'feature', value: 'auto',
|
|
|
|
description: 'virtio-9p support')
|
|
|
|
option('virtiofsd', type: 'feature', value: 'auto',
|
2021-02-20 18:21:02 +01:00
|
|
|
--
|
|
|
|
2.29.2
|
|
|
|
|