From 2a38cc59e39d0e745c9dac461fd0de8611091a51 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Wed, 26 May 2021 17:46:26 +0200 Subject: [PATCH] meson: Switch to autodetection for driver_test Match the behavior of most other features. Signed-off-by: Andrea Bolognani Reviewed-by: Pavel Hrdina --- meson.build | 2 +- meson_options.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index ce0772f7a8..36bb355414 100644 --- a/meson.build +++ b/meson.build @@ -1704,7 +1704,7 @@ if not get_option('driver_secrets').disabled() and conf.has('WITH_LIBVIRTD') conf.set('WITH_SECRETS', 1) endif -if get_option('driver_test').enabled() +if not get_option('driver_test').disabled() conf.set('WITH_TEST', 1) endif diff --git a/meson_options.txt b/meson_options.txt index fd23469431..e2877d5a92 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -62,7 +62,7 @@ option('qemu_moddir', type: 'string', value: '', description: 'set the directory option('driver_remote', type: 'feature', value: 'auto', description: 'remote driver') option('remote_default_mode', type: 'combo', choices: ['legacy', 'direct'], value: 'legacy', description: 'remote driver default mode') option('driver_secrets', type: 'feature', value: 'auto', description: 'local secrets management driver') -option('driver_test', type: 'feature', value: 'enabled', description: 'test driver') +option('driver_test', type: 'feature', value: 'auto', description: 'test driver') option('driver_vbox', type: 'feature', value: 'auto', description: 'VirtualBox XPCOMC driver') option('vbox_xpcomc_dir', type: 'string', value: '', description: 'Location of directory containing VirtualBox XPCOMC library') option('driver_vmware', type: 'feature', value: 'auto', description: 'VMware driver')