]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Switch to autodetection for driver_test
authorAndrea Bolognani <abologna@redhat.com>
Wed, 26 May 2021 15:46:26 +0000 (17:46 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 1 Jun 2021 12:32:02 +0000 (14:32 +0200)
Match the behavior of most other features.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
meson.build
meson_options.txt

index ce0772f7a8101162cab2c595190e815436bff783..36bb35541444b3cb8fc42bf50a7d4e5d3563b6be 100644 (file)
@@ -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
 
index fd234694317c725b44cf9e1ee761a26f5e922342..e2877d5a929050a4fc980e5697b9f49ba50cb55f 100644 (file)
@@ -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')