[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 14/16] osstest: add support for FreeBSD buildjobs to sg-run-job



Add support and introduce a FreeBSD build job to sg-run-job.

Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
---
Changes since v13:
 - Run ts-build-prep-freebsd for FreeBSD build host setup.

Changes since v5:
 - Add a '+' to the arguments passed to ts-freebsd-set-hostflags, so
   they are hidden from testid.

Changes since v4:
 - Use a switch in allocate-build-host.

Changes since v3:
 - New in this version (split from existing patch).
---
 sg-run-job | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sg-run-job b/sg-run-job
index 17cf6c4a..bb59b109 100755
--- a/sg-run-job
+++ b/sg-run-job
@@ -683,6 +683,7 @@ proc need-hosts/build-kern {}           { return 
BUILD_LINUX }
 proc need-hosts/build-libvirt {}        { return BUILD_LINUX }
 proc need-hosts/build-rumprun {}        { return BUILD_LINUX }
 proc need-hosts/build-xtf {}            { return BUILD_LINUX }
+proc need-hosts/build-freebsd {}        { return BUILD_FREEBSD }
 
 proc run-job/build {} {
     run-ts . = ts-xen-build
@@ -709,8 +710,16 @@ proc run-job/build-xtf {} {
     run-ts . = ts-xtf-build
 }
 
+proc run-job/build-freebsd {} {
+    run-ts . = ts-freebsd-build
+}
+
 proc allocate-build-host {ostype} {
     global jobinfo
+    switch -exact $ostype {
+        FREEBSD { run-ts broken = ts-freebsd-set-hostflags + --share host }
+        default {}
+    }
     run-ts broken = ts-hosts-allocate + host
 }
 proc prepare-build-host-linux {} {
@@ -719,6 +728,12 @@ proc prepare-build-host-linux {} {
     run-ts . host-build-prep ts-xen-build-prep
 }
 
+proc prepare-build-host-freebsd {} {
+    global jobinfo
+    run-ts broken host-install(*) ts-freebsd-host-install
+    run-ts . host-build-prep ts-build-prep-freebsd
+}
+
 proc need-hosts/coverity {} { return BUILD_LINUX }
 proc run-job/coverity {} {
     run-ts . = ts-coverity-build + host
-- 
2.13.5 (Apple Git-94)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.