From: Ian Jackson Date: Thu, 6 Oct 2016 18:11:09 +0000 (+0100) Subject: rump kernels: Install binutils on test box X-Git-Tag: openstack-v11~220 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2b07ae76faaa68c3aff0d5e2e2d5bb5da75da08d;p=people%2Faperard%2Fosstest.git rump kernels: Install binutils on test box The `rumprun' tool needs `readelf' which is in binutils. This introduces a new test step, which is idempotent. Signed-off-by: Ian Jackson --- diff --git a/sg-run-job b/sg-run-job index 61cb369e..57080e7a 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 00000000..60be5f46 --- /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();