meson: tests: add selinux specific tests

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina
2020-08-03 09:27:06 +02:00
parent f18813a6c3
commit 5d255f43d0
2 changed files with 15 additions and 39 deletions
+15
View File
@@ -482,6 +482,21 @@ if conf.has('WITH_REMOTE')
]
endif
if conf.has('WITH_SECDRIVER_SELINUX')
if conf.has('WITH_ATTR')
tests += [
{ 'name': 'securityselinuxtest' },
{ 'name': 'viridentitytest' },
]
if conf.has('WITH_QEMU')
tests += [
{ 'name': 'securityselinuxlabeltest', 'link_whole': [ test_utils_qemu_lib ] },
]
endif
endif
endif
foreach data : tests
test_sources = '@0@.c'.format(data['name'])
test_bin = executable(