qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Daniel P. Berrange" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH PULL 02/11] tests: remove repetition in unit test object deps
Date: Fri, 11 Sep 2015 10:24:29 -0600	[thread overview]
Message-ID: <55F3003D.1050203@redhat.com> (raw)
In-Reply-To: <1441973427-8897-3-git-send-email-berrange@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1988 bytes --]

On 09/11/2015 06:10 AM, Daniel P. Berrange wrote:
> Most of the unit tests have identical sets of object deps.
> For example all block unit tests need to depend on
> 
>  $(block-obj-y) libqemuutil.a libqemustub.a
> 
> Currently each unit test repeats this list of test deps.
> This list of deps will grow as future patches add more
> modules to the build, so define some common variables
> that can be used by all unit tests to remove the
> repetition.
> 
> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> ---
>  tests/Makefile | 94 ++++++++++++++++++++++++++++++----------------------------
>  1 file changed, 49 insertions(+), 45 deletions(-)
> 

> +++ b/tests/Makefile
> @@ -276,47 +276,51 @@ test-obj-y = tests/check-qint.o tests/check-qstring.o tests/check-qdict.o \
>  	tests/test-opts-visitor.o tests/test-qmp-event.o \
>  	tests/rcutorture.o tests/test-rcu-list.o

As it is, I found that we have a bug where we rely on undefined
$(qapi-py). So you may want to squash this in (otherwise, I have it as a
patch on my local tree that I still need to publish):


+++ b/tests/Makefile
@@ -1,5 +1,7 @@
 export SRC_PATH

+qapi-py = $(SRC_PATH)/scripts/qapi.py $(SRC_PATH)/scripts/ordereddict.py
+
 # Get the list of all supported sysemu targets
 SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \
    $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak)))


> +
> +# Deps that are common to various different sets of tests below
> +test-util-obj-y = libqemuutil.a libqemustub.a
> +test-qom-obj-y = qom/object.o qom/qom-qobject.o \
> +	qom/container.o qom/object_interfaces.o \
> +	$(test-util-obj-y)
> +test-qapi-obj-y = tests/test-qapi-visit.o tests/test-qapi-types.o \
> +	tests/test-qapi-event.o \
> +	$(test-qom-obj-y)

as well as add $(qapi-py) to the prereqs of test-qapi-obj-y.

but overall looks sane.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2015-09-11 16:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-11 12:10 [Qemu-devel] [PATCH PULL 00/11] Extract TLS handling code from VNC server Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 01/11] qapi: allow override of default enum prefix naming Daniel P. Berrange
2015-09-11 12:37   ` Eric Blake
2015-09-11 13:07     ` Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 02/11] tests: remove repetition in unit test object deps Daniel P. Berrange
2015-09-11 16:24   ` Eric Blake [this message]
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 03/11] crypto: move crypto objects out of libqemuutil.la Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 04/11] qom: allow QOM to be linked into tools binaries Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 05/11] crypto: introduce new base module for TLS credentials Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 06/11] crypto: introduce new module for TLS anonymous credentials Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 07/11] crypto: introduce new module for TLS x509 credentials Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 08/11] crypto: add sanity checking of " Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 09/11] crypto: introduce new module for handling TLS sessions Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 10/11] ui: fix return type for VNC I/O functions to be ssize_t Daniel P. Berrange
2015-09-11 12:10 ` [Qemu-devel] [PATCH PULL 11/11] ui: convert VNC server to use QCryptoTLSSession Daniel P. Berrange
2015-09-11 12:38 ` [Qemu-devel] [PATCH PULL 00/11] Extract TLS handling code from VNC server Eric Blake
2015-09-11 13:09   ` Daniel P. Berrange
2015-09-11 17:00     ` Eric Blake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55F3003D.1050203@redhat.com \
    --to=eblake@redhat.com \
    --cc=berrange@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).