]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Run virt-aa-helper-test only when the helper was compiled
authorPeter Krempa <pkrempa@redhat.com>
Fri, 28 Jul 2017 09:49:38 +0000 (11:49 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 28 Jul 2017 15:53:03 +0000 (17:53 +0200)
'virt-aa-helper' is compiled when both WITH_LIBVIRTD and
WITH_SECDRIVER_APPARMOR are defined. The test was run only when
WITH_SECDRIVER_APPARMOR was defined thus causing a build failure when
building without the daemon.

tests/Makefile.am

index 542c4a5729706c542beb88adf10a0359864b453d..6da3e477840a506b51faa20bef7e1f6d66be0013 100644 (file)
@@ -423,10 +423,11 @@ endif ! WITH_LIBVIRTD
 test_programs += objecteventtest
 
 if WITH_SECDRIVER_APPARMOR
+if WITH_LIBVIRTD
 test_scripts += virt-aa-helper-test
-else ! WITH_SECDRIVER_APPARMOR
+endif WITH_LIBVIRTD
+endif WITH_SECDRIVER_APPARMOR
 EXTRA_DIST += virt-aa-helper-test
-endif ! WITH_SECDRIVER_APPARMOR
 
 EXTRA_DIST += $(test_scripts)