[PATCH 06/12] tests: build 'virsh' before running virsh-auth test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The 'virsh-auth' test needs to be able to invoke the 'virsh' binary

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---
 tests/meson.build | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/tests/meson.build b/tests/meson.build
index 73b87be2a0..68fe00d0c1 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -720,17 +720,23 @@ if conf.has('WITH_LIBVIRTD')
   )
 
   test_scripts += [
-    'virsh-auth',
+      { 'name': 'virsh-auth', 'depends': [virsh_prog] }
   ]
 
   if conf.has('WITH_SECDRIVER_APPARMOR')
-    test_scripts += 'virt-aa-helper-test'
+    test_scripts += { 'name': 'virt-aa-helper-test' }
   endif
 endif
 
-foreach name : test_scripts
-  script = find_program(name)
-  test(name, script, env: tests_env, suite: 'script')
+foreach data : test_scripts
+  script = find_program(data['name'])
+  test(data['name'],
+       script,
+       env: tests_env,
+       depends: [
+           data.get('depends', []),
+       ],
+       suite: 'script')
 endforeach
 
 testenv = runutf8
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux