From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [OSSTEST PATCH [RFC] 0/3] Series short description Date: Thu, 5 Dec 2013 15:09:41 +0000 Message-ID: <20131205150935.20194.10427.stgit@drall.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org OSSTest: allow for handling multiple guests at the same time via the ts-debian-install, ts-debian-fixup and ts-guest-{start,stop,destroy} test scripts. The idea is to enable something like that: $ OSSTEST_JOB=test-amd64-amd64-xl $ export OSSTEST_JOB $ ./ts-debian-install host=tg03 debian1 debian2 debian3 $ ./ts-debian-fixup host=tg03 debian1 debian2 debian3 $ ./ts-guest-start host=tg03 debian1 debian2 debian3 $ ./ts-guest-stop host=tg03 debian1 debian2 $ ./ts-guest-destroy host=tg03 debian3 In fact, when wanting to use OSSTest for some fairly complex test or benchamrk that involves more than one or two VMs, I think it could be convinient to install, start, stop, etc., them like this, rather than having to call each script for all the domains. It should also save some time, when it comes, for example, to starting domains, as the operation is first requsted for all of them, and only after that we start checking wether they're up (the idea being that when we start checking, after having started the last one, the first one have probably finished booting). It's going to be mostly useful in standalone mode, but I guess it could allow to write more compact recipes too. I tested this both as reported above and by issueing a full `./sg-run-job test-amd64-amd64-xl'. I can go ahead and do the same for other ts-* scripts but: 1) I don't think is that much relevant/useful to do something like this in, for instance, ts-guest-migrate or ts-guest-saverestore 2) given my limited perl skills, I though I better ask for some early feedback. :-) Any comments are welcome. Regards, Dario --- Dario Faggioli (3): ts-debian-install: support for installing multiple guests ts-debian-fixup: support multiple guests ts-guest-start, -stop, -destroy: support multiple guests ts-debian-fixup | 30 ++++++++++++++++++--------- ts-debian-install | 59 +++++++++++++++++++++++++++++++---------------------- ts-guest-destroy | 28 +++++++++++++++++++------ ts-guest-start | 35 ++++++++++++++++++++++--------- ts-guest-stop | 30 ++++++++++++++++++++------- 5 files changed, 123 insertions(+), 59 deletions(-) -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)