From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH RFC 5/9] sg-run-job: new recipe for a unixbench job Date: Thu, 26 Jun 2014 15:02:55 +0200 Message-ID: <20140626130255.20110.93479.stgit@Solace> References: <20140626124540.20110.24159.stgit@Solace> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140626124540.20110.24159.stgit@Solace> 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@citrix.com, Wei Liu , Ian.Campbell@citrix.com, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Installs and run unixbench inside a PV and an HVM guest. XXX - The HVM case needs that a few fixup are performed after ts-debian-hvm-install. I'll do that as a separate and independent patch. - This is mostly a proof of concept. I think the recipes it defines are actually useful, but of course we can discuss of what is the best course of actions, depending how we want to achieve. Signed-off-by: Dario Faggioli --- sg-run-job | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/sg-run-job b/sg-run-job index e903869..36b6870 100755 --- a/sg-run-job +++ b/sg-run-job @@ -317,6 +317,34 @@ proc run-job/test-rumpuserxen {} { run-ts . = ts-guest-destroy + host $g } +#-------- benchmarks -------- + +proc bench-unixbench-guest {g} { + run-ts . = ts-unixbench-prep + host $g + run-ts . = ts-unixbench-run + host $g + run-ts . = ts-unixbench-reslts + host $g + run-ts . = ts-guest-stop + host $g +} + +proc bench-unixbench-pv {} { + run-ts . = ts-debian-install + host + run-ts . = ts-debian-fixup + host debian + run-ts . = ts-guest-start + host debian + bench-unixbench-guest debian +} + +proc bench-unixbench-hvm {} { + run-ts . = ts-debian-hvm-install + bench-unixbench-guest debianhvm +} + +proc need-hosts/bench-unixbench {} { return host } +proc run-job/bench-unixbench {} { + bench-unixbench-pv + #bench-unixbench-hvm TODO: a few fixup needed, will submit as + # separate patches. +} + #---------- builds ---------- proc need-hosts/build {} { return BUILD }