diff options
author | Juan Quintela <quintela@redhat.com> | 2023-03-01 11:44:50 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2023-03-07 14:30:42 +0100 |
commit | 4d1bc58de7fa272dfa2e06a99355be5f67a4614a (patch) | |
tree | d63009916df747913b9e91e70f181a9c09819a78 /tests | |
parent | 243ec1c284af7676847cedadf42a8d4465a123e9 (diff) | |
download | qemu-4d1bc58de7fa272dfa2e06a99355be5f67a4614a.zip qemu-4d1bc58de7fa272dfa2e06a99355be5f67a4614a.tar.gz qemu-4d1bc58de7fa272dfa2e06a99355be5f67a4614a.tar.bz2 |
test: Check vnc enable before compiling vnc test
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230301104450.1017-1-quintela@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/meson.build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build index 29a4efb..62eecf2 100644 --- a/tests/qtest/meson.build +++ b/tests/qtest/meson.build @@ -309,10 +309,12 @@ qtests = { 'netdev-socket': files('netdev-socket.c', '../unit/socket-helpers.c'), } -gvnc = dependency('gvnc-1.0', required: false) -if gvnc.found() - qtests += {'vnc-display-test': [gvnc]} - qtests_generic += [ 'vnc-display-test' ] +if vnc.found() + gvnc = dependency('gvnc-1.0', required: false) + if gvnc.found() + qtests += {'vnc-display-test': [gvnc]} + qtests_generic += [ 'vnc-display-test' ] + endif endif if dbus_display |