From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Hyman Huang <yong.huang@smartx.com>
Cc: qemu-devel@nongnu.org, Peter Xu <peterx@redhat.com>,
Fabiano Rosas <farosas@suse.de>
Subject: Re: [PATCH v2 2/5] tests/migration: Make initrd-stress.img built by default
Date: Mon, 21 Oct 2024 17:33:00 +0100 [thread overview]
Message-ID: <ZxaCPPeymA6YfVre@redhat.com> (raw)
In-Reply-To: <777e9f8e3fe4d0e565cf62efbef6cda83a6b06a4.1729275266.git.yong.huang@smartx.com>
On Sat, Oct 19, 2024 at 02:25:04AM +0800, Hyman Huang wrote:
> The initrd-stress.img was compiled by specifying the target,
> to make it easier for developers to play the guestperf tool,
> make it built when dependencies suffices.
>
> Signed-off-by: Hyman Huang <yong.huang@smartx.com>
> ---
> tests/migration/meson.build | 33 ++++++++++++++++++++-------------
> 1 file changed, 20 insertions(+), 13 deletions(-)
>
> diff --git a/tests/migration/meson.build b/tests/migration/meson.build
> index a91aa61c65..d9e5b0d241 100644
> --- a/tests/migration/meson.build
> +++ b/tests/migration/meson.build
> @@ -1,18 +1,25 @@
> +sysprof = not_found
> +glib_static = not_found
> +
These two assignments should be redundant, given that the next two
line unconditionally overwrite them.
> sysprof = dependency('sysprof-capture-4', method: 'pkg-config', required: false)
> glib_static = dependency('glib-2.0', version: glib_req_ver, required: false,
> method: 'pkg-config', static: true)
'dependency()' should already return "not_found" given you have
'required: false'
>
> -stress = executable(
> - 'stress',
> - files('stress.c'),
> - dependencies: [glib_static, sysprof],
> - link_args: ['-static'],
> - build_by_default: false,
> -)
>
> -custom_target(
> - 'initrd-stress.img',
> - output: 'initrd-stress.img',
> - input: stress,
> - command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@']
> -)
> +if host_os == 'linux' and sysprof.found() and glib_static.found()
> + stress = executable(
> + 'stress',
> + files('stress.c'),
> + dependencies: [glib_static, sysprof],
> + link_args: ['-static'],
> + )
> +
> + custom_target(
> + 'initrd-stress.img',
> + output: 'initrd-stress.img',
> + input: stress,
> + command: [find_program('initrd-stress.sh'), '@OUTPUT@', '@INPUT@'],
> + build_by_default: true,
> + depends: [stress],
> + )
> +endif
Assuming you remove the two redundant assignments at the top, then
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2024-10-21 16:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 18:25 [PATCH v2 0/5] Guestperf: miscellaneous refinement and enrichment Hyman Huang
2024-10-18 18:25 ` [PATCH v2 1/5] tests/migration: Move the guestperf tool to scripts directory Hyman Huang
2024-10-21 16:33 ` Daniel P. Berrangé
2024-10-18 18:25 ` [PATCH v2 2/5] tests/migration: Make initrd-stress.img built by default Hyman Huang
2024-10-21 16:33 ` Daniel P. Berrangé [this message]
2024-10-18 18:25 ` [PATCH v2 3/5] guestperf: Support deferred migration for multifd Hyman Huang
2024-10-21 16:35 ` Daniel P. Berrangé
2024-10-18 18:25 ` [PATCH v2 4/5] guestperf: Nitpick the inconsistent parameters Hyman Huang
2024-10-21 16:36 ` Daniel P. Berrangé
2024-10-18 18:25 ` [PATCH v2 5/5] guestperf: Introduce multifd compression option Hyman Huang
2024-10-21 16:37 ` Daniel P. Berrangé
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=ZxaCPPeymA6YfVre@redhat.com \
--to=berrange@redhat.com \
--cc=farosas@suse.de \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yong.huang@smartx.com \
/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).