test: Check vnc enable before compiling vnc test
PATCH 1/1 test: Check vnc enable before compiling vnc test
Signed-off-by Juan Quintela <[email protected]>
--- tests/qtest/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
tests/qtest/meson.build +6 -4
@@ -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
Signature · 1 line
2.39.2
Quoted 14 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>--- tests/qtest/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)tests/qtest/meson.build +0
-1@@ -309,10 +309,12 @@ qtests = { 'netdev-socket': files('netdev-socket.c', '../unit/socket-helpers.c'), } -gvnc = dependency('gvnc-1.0', required: false)
tests/qtest/meson.build qtests = { · line 318
Quoted 10 lines
tests/qtest/meson.build +6
-3-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
Reviewed-by Thomas Huth <[email protected]>
Quoted 2 lines · Juan Quintela
Signed-off-by Juan Quintela <[email protected]>
Reviewed-by Marc-André Lureau <[email protected]>
Quoted 29 lines
--- tests/qtest/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)tests/qtest/meson.build +6
-5@@ -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 --2.39.2
Signature · 1 line
Marc-André Lureau