From: Roger Pau Monne Date: Wed, 13 Jun 2018 07:40:15 +0000 (+0200) Subject: osstest: add script to install build dependencies on FreeBSD X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b3ae55c5b6013bd2c6d92bf75f219c6891bd625b;p=osstest.git osstest: add script to install build dependencies on FreeBSD Since at the moment osstest only builds FreeBSD on FreeBSD, there are no dependencies to install. Just mark the host as ready to share. Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- diff --git a/ts-build-prep-freebsd b/ts-build-prep-freebsd new file mode 100755 index 0000000..1d78a3e --- /dev/null +++ b/ts-build-prep-freebsd @@ -0,0 +1,37 @@ +#!/usr/bin/perl -w +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2017 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 POSIX; + +unshift @INC, qw(.); +use Osstest; +use Osstest::TestSupport; + +tsreadconfig(); + +our ($whhost) = @ARGV; +$whhost ||= 'host'; +our $ho= selecthost($whhost); +exit 0 if $ho->{SharedReady}; + +our $path_prefix = $r{"freebsd_distpath"} || + get_stashed("path_freebsddist", $r{"freebsdbuildjob"}); + +host_shared_mark_ready($ho, "build-freebsd-". + sha256file("$path_prefix/install.img", 16)); diff --git a/ts-freebsd-host-install b/ts-freebsd-host-install index 357c0b7..765de29 100755 --- a/ts-freebsd-host-install +++ b/ts-freebsd-host-install @@ -278,6 +278,3 @@ setup_netboot_local($ho); # Proceed with the install install(); - -host_shared_mark_ready($ho, "build-freebsd-". - sha256file("$path_prefix/install.img", 16));