From nobody Sun Feb 8 06:05:05 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=1594894075; cv=none; d=zohomail.com; s=zohoarc; b=KqQ226VVuEXB96C7N2HMgLlV2bj22XZ06i6X0y1QsnzyyWMkZEi8H0h6NuelPa5ioHz2pEDSCVI92fsXP1bKd043B155MCLr5OPMXYHbBgjLOJdzbPce2py0Ouum/XC7xN3zq74W3KWq6hDSh6h3f5RX66rKQ8x1Rop4GzSpURU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894075; 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=Z8PL+SRtBfAB5hHO9+m/1cQkpIzC4qWuVGs07Lijo6A=; b=ldLA5dLJ6Bji9aOrWkmHH8/aLiT9kpUpJP/aqU09IMSiGCByXAK6/QpjaxmCP5UYYDi3wG0gbTm6HlWAXk04mJhEJdhQ3y0nRKkvOSk0mL+mPTvqMeOtVRRwqVAizEv6pxWTv81WZeQQBskAArQhMCoaoi4GjEziNys/4jtelUs= 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 1594894074798866.4523833396099; Thu, 16 Jul 2020 03:07:54 -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-61-qq72-mmPMXOGDOonPwp3vg-1; Thu, 16 Jul 2020 06:07:51 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 993158005B0; Thu, 16 Jul 2020 10:07:45 +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 758981053B01; Thu, 16 Jul 2020 10:07:45 +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 3D5D596236; Thu, 16 Jul 2020 10:07:44 +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 06GA3luK017440 for ; Thu, 16 Jul 2020 06:03:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id 871EA2DE69; Thu, 16 Jul 2020 10:03:47 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 005EA2B6DB for ; Thu, 16 Jul 2020 10:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894073; 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=Z8PL+SRtBfAB5hHO9+m/1cQkpIzC4qWuVGs07Lijo6A=; b=SPoinU049piBqo2aNEMxdrcGVb0NHIaSOENfrEIdcXm6JPHv4lLgS6ZN3mOy8atIxtc5gC AtH6NIb1XfLlMKjcewmLIUG+lJyLvAd6tuJ1iglPMTyoENNKBszeWK00KIPFfKONGBvzyn sZbrW7g1XpggK2gGLxMQbsEkWVI1SCc= X-MC-Unique: qq72-mmPMXOGDOonPwp3vg-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 142/351] meson: src: build libvirt_test.a static library Date: Thu, 16 Jul 2020 11:56:18 +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.84 on 10.5.11.22 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 --- src/Makefile.am | 1 - src/meson.build | 1 + src/test/Makefile.inc.am | 23 ----------------------- src/test/meson.build | 24 ++++++++++++++++++++++++ 4 files changed, 25 insertions(+), 24 deletions(-) delete mode 100644 src/test/Makefile.inc.am create mode 100644 src/test/meson.build diff --git a/src/Makefile.am b/src/Makefile.am index b7fd239d0fb..555c677c615 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -75,7 +75,6 @@ include access/Makefile.inc.am include logging/Makefile.inc.am include locking/Makefile.inc.am include admin/Makefile.inc.am -include test/Makefile.inc.am include esx/Makefile.inc.am include vmx/Makefile.inc.am include vmware/Makefile.inc.am diff --git a/src/meson.build b/src/meson.build index 61be43904e8..af9dcfbb5f5 100644 --- a/src/meson.build +++ b/src/meson.build @@ -91,4 +91,5 @@ subdir('admin') subdir('esx') subdir('hyperv') subdir('openvz') +subdir('test') subdir('vmware') diff --git a/src/test/Makefile.inc.am b/src/test/Makefile.inc.am deleted file mode 100644 index c209414745e..00000000000 --- a/src/test/Makefile.inc.am +++ /dev/null @@ -1,23 +0,0 @@ -# vim: filetype=3Dautomake - -TEST_DRIVER_SOURCES =3D \ - test/test_driver.c \ - test/test_driver.h \ - $(NULL) -TEST_DRIVER_ASSETS =3D test/test-screenshot.png - -DRIVER_SOURCE_FILES +=3D $(addprefix $(srcdir)/,$(TEST_DRIVER_SOURCES)) - -if WITH_TEST - -driver_test_asset_DATA =3D $(TEST_DRIVER_ASSETS) -driver_test_assetdir =3D $(pkgdatadir) - -noinst_LTLIBRARIES +=3D libvirt_driver_test.la -libvirt_la_BUILT_LIBADD +=3D libvirt_driver_test.la -libvirt_driver_test_la_CFLAGS =3D \ - -I$(srcdir)/conf \ - $(AM_CFLAGS) \ - $(NULL) -libvirt_driver_test_la_SOURCES =3D $(TEST_DRIVER_SOURCES) -endif WITH_TEST diff --git a/src/test/meson.build b/src/test/meson.build new file mode 100644 index 00000000000..ec7b12304ec --- /dev/null +++ b/src/test/meson.build @@ -0,0 +1,24 @@ +test_driver_sources =3D [ + 'test_driver.c', +] + +test_driver_assets =3D [ + 'test-screenshot.png', +] + +if conf.has('WITH_TEST') + test_lib =3D static_library( + 'virt_test', + [ + test_driver_sources, + ], + dependencies: [ + src_dep, + ], + include_directories: [ + conf_inc_dir, + ], + ) + + install_data(test_driver_assets, install_dir: pkgdatadir) +endif --=20 2.26.2