From nobody Sun Feb 8 13:32:55 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1594894512; cv=none; d=zohomail.com; s=zohoarc; b=CKAWi8qdTmWQYW24vgP2+mh2dE4EYK1fNERE6AghO6fjaCKxYnTv73fR922o5pEPlBmhdVffU0FB3ssgrSO9pVTayfSTvNLBxY7jj8Kj3oRPfnjc24Dr0lzZ7mZsty40h9xcsmg7UJ2UUVzvoqdvV0HZsnC2/DBOctEwvYSpoU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894512; 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=RJvWDxlbJoFfbb98O5vqW3m3mq7hRbkTSGYP4oJyFUY=; b=bpstc466LXkJXMzINceexg6ox0TekdRRP5XjT2KyHbwFPpD8s/dsvEs9qU2N4WYVDgEPdHZQz0tbufeq5ln8r1LkInmHwR6JPBUMkAnuwv6JJG/GVEcSiCU/2klotZO2tGFfbFBya+Mp9TBf8HUeBJh3Lkfz70E2J1YupxAVVQI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1594894512870642.5041339014532; Thu, 16 Jul 2020 03:15:12 -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-42-x9RElm_sPiK4FEAq3Z1Hrg-1; Thu, 16 Jul 2020 06:14:33 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B5A478027EF; Thu, 16 Jul 2020 10:14:27 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 93DEB7B42A; Thu, 16 Jul 2020 10:14:27 +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 6190F181D0B3; Thu, 16 Jul 2020 10:14:27 +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 06GA72C5020146 for ; Thu, 16 Jul 2020 06:07:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id BC7152B6DB; Thu, 16 Jul 2020 10:07:02 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 342E52DE69 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=1594894511; 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=RJvWDxlbJoFfbb98O5vqW3m3mq7hRbkTSGYP4oJyFUY=; b=iCcnejO72rxhipY2bOf2SIYyKWOayL6e7rcrA0yx472ntWfd4Nn/KOM2KHlJYlKyrl3i5D bhiaMZ8+y0E8e2915XSPrPz1CQTN7rywQigUFwGaIIZbh1JFJv/iMESfPFq7X5nmUzZ8U+ zEB0PfsefbXFHYfo2Ieg1vGjoEBcmdU= X-MC-Unique: x9RElm_sPiK4FEAq3Z1Hrg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 300/351] meson: tests: add remote specific tests Date: Thu, 16 Jul 2020 11:58:56 +0200 Message-Id: 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.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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 | 46 ---------------------------------------------- tests/meson.build | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 46 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a821b0e0af7..ecc2a76a80f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,17 +16,6 @@ ## License along with this library. If not, see ## . =20 -if WITH_REMOTE -test_programs +=3D \ - virnetmessagetest \ - virnetsockettest \ - virnetdaemontest \ - virnetserverclienttest \ - virnettlscontexttest \ - virnettlssessiontest \ - $(NULL) -endif WITH_REMOTE - if WITH_SECDRIVER_SELINUX if WITH_ATTR test_programs +=3D securityselinuxtest \ @@ -219,41 +208,6 @@ storagepoolcapstest_SOURCES =3D \ storagepoolcapstest_LDADD =3D $(LDADDS) endif ! WITH_STORAGE =20 -virnetmessagetest_SOURCES =3D \ - virnetmessagetest.c testutils.h testutils.c -virnetmessagetest_LDADD =3D $(LDADDS) - -virnetsockettest_SOURCES =3D \ - virnetsockettest.c testutils.h testutils.c -virnetsockettest_LDADD =3D $(LDADDS) - -virnetdaemontest_SOURCES =3D \ - virnetdaemontest.c \ - testutils.h testutils.c -virnetdaemontest_LDADD =3D $(LDADDS) - -virnetserverclienttest_SOURCES =3D \ - virnetserverclienttest.c \ - testutils.h testutils.c -virnetserverclienttest_LDADD =3D $(LDADDS) - -virnettlscontexttest_SOURCES =3D \ - virnettlscontexttest.c \ - virnettlshelpers.h virnettlshelpers.c \ - testutils.h testutils.c -virnettlscontexttest_LDADD =3D $(LDADDS) $(GNUTLS_LIBS) -virnettlssessiontest_SOURCES =3D \ - virnettlssessiontest.c \ - virnettlshelpers.h virnettlshelpers.c \ - testutils.h testutils.c -virnettlssessiontest_LDADD =3D $(LDADDS) $(GNUTLS_LIBS) -if HAVE_LIBTASN1 -virnettlscontexttest_SOURCES +=3D pkix_asn1_tab.c -virnettlscontexttest_LDADD +=3D -ltasn1 -virnettlssessiontest_SOURCES +=3D pkix_asn1_tab.c -virnettlssessiontest_LDADD +=3D -ltasn1 -endif ! HAVE_LIBTASN1 - virstoragetest_SOURCES =3D \ virstoragetest.c testutils.h testutils.c virstoragetest_LDADD =3D $(LDADDS) \ diff --git a/tests/meson.build b/tests/meson.build index 7a96d11e842..4e01585da11 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -451,6 +451,27 @@ if conf.has('WITH_QEMU') ] endif =20 +if conf.has('WITH_REMOTE') + tests +=3D [ + { 'name': 'virnetdaemontest' }, + { 'name': 'virnetmessagetest' }, + { 'name': 'virnetserverclienttest' }, + { 'name': 'virnetsockettest' }, + ] + + nettls_sources =3D [ 'virnettlshelpers.c' ] + if conf.has('HAVE_LIBTASN1_H') + nettls_sources +=3D 'pkix_asn1_tab.c' + endif + + libtasn1_dep =3D cc.find_library('tasn1', required: false) + + tests +=3D [ + { 'name': 'virnettlscontexttest', 'sources': [ 'virnettlscontexttest.c= ', nettls_sources ], 'deps': [ libtasn1_dep, ] }, + { 'name': 'virnettlssessiontest', 'sources': [ 'virnettlssessiontest.c= ', nettls_sources ], 'deps': [ libtasn1_dep, ] }, + ] +endif + foreach data : tests test_sources =3D '@0@.c'.format(data['name']) test_bin =3D executable( --=20 2.26.2