From patchwork Fri Oct 7 16:34:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Jackson X-Patchwork-Id: 9366867 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DEA35608A6 for ; Fri, 7 Oct 2016 16:38:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE0AA295DD for ; Fri, 7 Oct 2016 16:38:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2A212977E; Fri, 7 Oct 2016 16:38:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 64D372977C for ; Fri, 7 Oct 2016 16:38:22 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsY8V-00019c-NM; Fri, 07 Oct 2016 16:36:39 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsY8U-00018q-Cm for xen-devel@lists.xenproject.org; Fri, 07 Oct 2016 16:36:38 +0000 Received: from [85.158.143.35] by server-4.bemta-6.messagelabs.com id DE/FF-29421-51FC7F75; Fri, 07 Oct 2016 16:36:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRWlGSWpSXmKPExsXitHSDva7o+e/ hBgenc1l83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBm31jaxFbzjr9jQ1c7awPiTp4uRk0NCwF/i x+mDTCA2m4CuRNOWv2xdjBwcIgIqErf3GoCYzAKhEjteWIJUCAt4Skx88ZoVxGYBqviw7wozS AmvgJfEoQXiEAPlJM4f/8kMYnMChX+1TWcBsYWAWr8s+cIOUi4koCYxd308SJhXQFDi5MwnYC XMAhISB1+8YIYYwy1x+/RU5gmMfLOQlM1CUraAkWkVo3pxalFZapGumV5SUWZ6RkluYmaOrqG BmV5uanFxYnpqTmJSsV5yfu4mRmAoMQDBDsZ5J/wPMUpyMCmJ8r6s/B4uxJeUn1KZkVicEV9U mpNafIhRhoNDSYL36lmgnGBRanpqRVpmDjCoYdISHDxKIrxC54DSvMUFibnFmekQqVOMuhzH5 t5YyyTEkpeflyolznscZIYASFFGaR7cCFiEXWKUlRLmZQQ6SoinILUoN7MEVf4VozgHo5Iwbw bIKp7MvBK4Ta+AjmACOiJ/6ReQI0oSEVJSDYxBdVYf+h7JfRMPaN2aYmXtvT3nRNL5L/n1F1o NDt2c4D/nQbNcOG++vLj/jdL7WafnyU+Uu7f3h6nK12PbZ31ne3UlS0FJsGfHusWMiWHrJE54 Je+b5Bv8ts2P79pOdosacZbMytrUoH8LE7P3TL+1eB/T+le5n7SFo697qNvpNlwx1RGepKPEU pyRaKjFXFScCABPjSj/qwIAAA== X-Env-Sender: prvs=081af608b=Ian.Jackson@citrix.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1475858195!32523762!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 65391 invoked from network); 7 Oct 2016 16:36:36 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-16.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 7 Oct 2016 16:36:36 -0000 X-IronPort-AV: E=Sophos;i="5.31,456,1473120000"; d="scan'208";a="391321116" From: Ian Jackson To: Date: Fri, 7 Oct 2016 17:34:54 +0100 Message-ID: <1475858096-16123-15-git-send-email-ian.jackson@eu.citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1475858096-16123-1-git-send-email-ian.jackson@eu.citrix.com> References: <1475858096-16123-1-git-send-email-ian.jackson@eu.citrix.com> MIME-Version: 1.0 X-DLP: MIA2 Cc: Ian Jackson Subject: [Xen-devel] [OSSTEST PATCH 14/16] rump kernels: Install binutils on test box X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The `rumprun' tool needs `readelf' which is in binutils. This introduces a new test step, which is idempotent. Signed-off-by: Ian Jackson --- sg-run-job | 1 + ts-rumprun-test-prep | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 ts-rumprun-test-prep diff --git a/sg-run-job b/sg-run-job index 61cb369..57080e7 100755 --- a/sg-run-job +++ b/sg-run-job @@ -460,6 +460,7 @@ proc test-guest-nomigr {g} { proc need-hosts/test-rumprun {} { return host } proc run-job/test-rumprun {} { + run-ts . = ts-rumprun-test-prep + host set g nettest run-ts . = ts-rumprun-demo-setup + host $g run-ts . = ts-guest-start + host $g diff --git a/ts-rumprun-test-prep b/ts-rumprun-test-prep new file mode 100755 index 0000000..60be5f4 --- /dev/null +++ b/ts-rumprun-test-prep @@ -0,0 +1,36 @@ +#!/usr/bin/perl -w +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2009-2013 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +use strict qw(vars); +use DBI; +use Osstest; +use POSIX; +use Osstest::TestSupport; +use Osstest::Debian; + +tsreadconfig(); + +our ($whhost) = @ARGV; +$whhost ||= 'host'; +our $ho= selecthost($whhost); + +sub packages () { + target_install_packages($ho, + qw(binutils)); +} + +packages();