qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: "Vladimir Sementsov-Ogievskiy" <vsementsov@virtuozzo.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
	qemu-block@nongnu.org, Juan Quintela <quintela@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Max Reitz <mreitz@redhat.com>,
	Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>,
	Paolo Bonzini <pbonzini@redhat.com>, John Snow <jsnow@redhat.com>
Subject: Re: [PATCH v10 12/12] migration: introduce snapshot-{save,load,delete} QMP commands
Date: Tue, 2 Feb 2021 12:56:55 -0600	[thread overview]
Message-ID: <cb8c5bbb-5007-d113-fa73-1529ad6249c0@redhat.com> (raw)
In-Reply-To: <13b1d60e-ac6a-20c1-47e4-94c8292812b3@virtuozzo.com>

On 2/2/21 12:43 PM, Vladimir Sementsov-Ogievskiy wrote:

>> Not this patch's fault: I find the name tests/qemu-iotests/tests/name to
>> be rather long and a bit repetitive; maybe we want to rename the
>> directory structure to something simpler, like:
>>
>> tests/iotests/name
>>
>> (that is, move the named tests into a sibling directory of
>> qemu-iotests/check, rather than a subdirectory).
> 
> Still, I think splitting test files from library (check, testenv,
> common.rc, etc) is a good thing.
> 
> I remember someone suggested to rename qemu-iotests to just io..
> 
> so we can have tests/io/tests/name
> 
> or may be, what about
> 
> tests/io/name
> 
> and
> 
> tests/io/lib/{check,testenv,common.rc,etc}

I like those.

> 
>> And maybe rename
>> qemu-iotests/check to something that requires less typing.  Oh, and
>> while I'm asking for rainbows and ponies, being able to run check from
>> the same directory where I run make, instead of having to change
>> directories, would be nice.  But as I said, that's a wish list for a
>> separate series.
> 
> 
> I run check from any directory with my script:
> 
> # cat /work/scripts/check
> #!/bin/bash
> 
> root=$(git rev-parse --show-toplevel) || exit
> 
> dir="$root/build/tests/qemu-iotests"
> check="$dir/check"
> 
> test -f "$check" || { echo "Can't find '$check'. Is it a Qemu git?";
> exit 1; }
> 
> cd "$dir"
> ./check $@

Useful idea, thanks.  I'm not sure whether we want it in git, but I
already have local hacks (symlinks and such) so that for most of my
development, I can run 'make' and then './qemu-nbd' in the same
directory where I run 'git update', even though I actually configured
within a './build' subdirectory, and I only have to 'cd build-clang;
make' or similar when testing an alternative environment.  This script
is another such hack I'd stick in my top-level directory to maintain my
personal guise of building locally.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org



      reply	other threads:[~2021-02-02 18:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-02 15:41 [PATCH v10 00/12] migration: bring improved savevm/loadvm/delvm to QMP Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 01/12] block: push error reporting into bdrv_all_*_snapshot functions Daniel P. Berrangé
2021-02-02 17:25   ` Eric Blake
2021-02-02 15:41 ` [PATCH v10 02/12] migration: Make save_snapshot() return bool, not 0/-1 Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 03/12] migration: stop returning errno from load_snapshot() Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 04/12] block: add ability to specify list of blockdevs during snapshot Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 05/12] block: allow specifying name of block device for vmstate storage Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 06/12] block: rename and alter bdrv_all_find_snapshot semantics Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 07/12] migration: control whether snapshots are ovewritten Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 08/12] migration: wire up support for snapshot device selection Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 09/12] migration: introduce a delete_snapshot wrapper Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 10/12] iotests: add support for capturing and matching QMP events Daniel P. Berrangé
2021-02-02 15:41 ` [PATCH v10 11/12] iotests: fix loading of common.config from tests/ subdir Daniel P. Berrangé
2021-02-02 16:13   ` Vladimir Sementsov-Ogievskiy
2021-02-02 16:24   ` Philippe Mathieu-Daudé
2021-02-02 15:41 ` [PATCH v10 12/12] migration: introduce snapshot-{save, load, delete} QMP commands Daniel P. Berrangé
2021-02-02 18:14   ` [PATCH v10 12/12] migration: introduce snapshot-{save,load,delete} " Eric Blake
2021-02-02 18:43     ` Vladimir Sementsov-Ogievskiy
2021-02-02 18:56       ` Eric Blake [this message]

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=cb8c5bbb-5007-d113-fa73-1529ad6249c0@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pavel.dovgaluk@ispras.ru \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=vsementsov@virtuozzo.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).