From nobody Sun Feb 8 11:40:32 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894328; cv=none; d=zohomail.com; s=zohoarc; b=QWQ0hJY+yEKUHsSAu02IzsciQNEllG2QxWsE308b7rVT6gvdtcDdPSs5D8Y8HO/N43P2UBiI0q8FImfcKXmA3mfQ/r9zQud4trOE+Z8gvgoWk9QxFwzNEM0sgpLQhMt/sN1VvM4zJGsQqFJb8lN62hIth20TLfmT+UbEiY4BzK4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894328; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ouHYM7RcyfRQMd2AdX+xJyEil429m7PJlOwIZ8PyII8=; b=g5XMAySfEFUQcaK6EMoZd4T7dFcNNxa1rvMgPnK8sY7rOkuZS4KFrF9dUX/9OBzbQe+7FNLBundi2ltYLAN/yEShNvEV5g3KmKgKUz5aIDYcjVfovVjKMWP5DGF5CCLpJH0ony0fhDap+zdtOOSv9KAdJj4GlUkOyiPxi+0ecSo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 15948943282421008.7654605378293; Thu, 16 Jul 2020 03:12:08 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-268-aG5tesBHMdyuOmja6OyyPA-1; Thu, 16 Jul 2020 06:09:29 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D982E100AA29; Thu, 16 Jul 2020 10:09:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B5A79710D7; Thu, 16 Jul 2020 10:09:23 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 822869A328; Thu, 16 Jul 2020 10:09:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA73JI020177 for ; Thu, 16 Jul 2020 06:07:03 -0400 Received: by smtp.corp.redhat.com (Postfix) id A4ECA2B6DC; Thu, 16 Jul 2020 10:07:03 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1FC882B6DB for ; Thu, 16 Jul 2020 10:07:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894327; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ouHYM7RcyfRQMd2AdX+xJyEil429m7PJlOwIZ8PyII8=; b=ZJ3mfwhawOjLr2ASXwaTvDVreSAynXa8ohNRvZ9u/C95579f8dPTb00ruEhKACDhIar+3C Uf+YrzwsTMUkOk3R9qooVNw4ExF0vO0nnZyooWLSr5toX65Wf4IcIOICocLpKdtahH3FS7 lcijQffuj8tXNuFklcz0xf5jp/Orlnw= X-MC-Unique: aG5tesBHMdyuOmja6OyyPA-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 301/351] meson: tests: add selinux specific tests Date: Thu, 16 Jul 2020 11:58:57 +0200 Message-Id: <8501c3a9bc760584a42a72d1a15c273ead1fa005.1594891445.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- tests/Makefile.am | 39 --------------------------------------- tests/meson.build | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 39 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index ecc2a76a80f..7b2cba16eff 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,16 +16,6 @@ ## License along with this library. If not, see ## . =20 -if WITH_SECDRIVER_SELINUX -if WITH_ATTR -test_programs +=3D securityselinuxtest \ - viridentitytest -if WITH_QEMU -test_programs +=3D securityselinuxlabeltest -endif WITH_QEMU -endif WITH_ATTR -endif WITH_SECDRIVER_SELINUX - if WITH_QEMU test_helpers +=3D qemucapsprobe endif WITH_QEMU @@ -215,15 +205,6 @@ virstoragetest_LDADD =3D $(LDADDS) \ ../src/libvirt_driver_storage_impl.la \ $(NULL) =20 -viridentitytest_SOURCES =3D \ - viridentitytest.c testutils.h testutils.c -viridentitytest_LDADD =3D $(LDADDS) -if WITH_SELINUX -viridentitytest_LDADD +=3D $(SELINUX_LIBS) -viridentitytest_DEPENDENCIES =3D libsecurityselinuxhelper.la \ - ../src/libvirt.la -endif WITH_SELINUX - if WITH_NSS ## Intentionaly not linking with anything else. ## See the test source for more detailed explanation. @@ -257,26 +238,6 @@ test_programs +=3D \ virnetdevopenvswitchtest endif ! WITH_YAJL =20 -if WITH_SECDRIVER_SELINUX -if WITH_ATTR - -securityselinuxtest_SOURCES =3D \ - securityselinuxtest.c testutils.h testutils.c -securityselinuxtest_LDADD =3D $(LDADDS) $(SELINUX_LIBS) -securityselinuxtest_DEPENDENCIES =3D libsecurityselinuxhelper.la \ - ../src/libvirt.la - -if WITH_QEMU -securityselinuxlabeltest_SOURCES =3D \ - securityselinuxlabeltest.c testutils.h testutils.c \ - testutilsqemu.h testutilsqemu.c -securityselinuxlabeltest_LDADD =3D $(qemu_LDADDS) $(SELINUX_LIBS) -securityselinuxlabeltest_DEPENDENCIES =3D libsecurityselinuxhelper.la \ - ../src/libvirt.la -endif WITH_QEMU -endif WITH_ATTR -endif WITH_SECDRIVER_SELINUX - virjsontest_SOURCES =3D \ virjsontest.c testutils.h testutils.c virjsontest_LDADD =3D $(LDADDS) diff --git a/tests/meson.build b/tests/meson.build index 4e01585da11..67b9cd11d1c 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -472,6 +472,21 @@ if conf.has('WITH_REMOTE') ] endif =20 +if conf.has('WITH_SECDRIVER_SELINUX') + if conf.has('WITH_ATTR') + tests +=3D [ + { 'name': 'securityselinuxtest' }, + { 'name': 'viridentitytest' }, + ] + + if conf.has('WITH_QEMU') + tests +=3D [ + { 'name': 'securityselinuxlabeltest', 'link_with': [ test_utils_qe= mu_lib ] }, + ] + endif + endif +endif + foreach data : tests test_sources =3D '@0@.c'.format(data['name']) test_bin =3D executable( --=20 2.26.2