]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
mfi-common: create xtf build job for 4.4 onwards
authorWei Liu <wei.liu2@citrix.com>
Thu, 21 Jul 2016 10:50:36 +0000 (11:50 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 9 Sep 2016 13:40:25 +0000 (14:40 +0100)
Xen 4.4 is the oldest one that we still provide security support at this
point in time.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
mfi-common

index 8f27923dce83d33a498bf1906005e8efb28c4685..76b93d132ce9d05e21c47232336a54c86fc064eb 100644 (file)
@@ -67,6 +67,15 @@ xenbranch_xsm_variants () {
     esac
 }
 
+branch_wants_xtf_tests () {
+  case "$branch" in
+    osstest*) return 0;;
+    xen-*)    return 0;;
+    xtf*)     return 0;;
+    *)        return 1;;
+  esac
+}
+
 job_create_build () {
   job_create_build_filter_callback "$@" || return 0
 
@@ -265,6 +274,20 @@ create_build_jobs () {
 
     fi
 
+    if branch_wants_xtf_tests; then
+        # Only x86, build once for amd64 and use the same result for
+        # both amd64 and i386
+        if [ x$arch = xamd64 ] ; then
+        job_create_build build-$arch-xtf build-xtf                           \
+                arch=$arch                                                   \
+                $RUNVARS $BUILD_RUNVARS $BUILD_XTF_RUNVARS $arch_runvars     \
+                $hostos_runvars                                              \
+                host_hostflags=$build_hostflags                              \
+                tree_xtf=$TREE_XTF                                           \
+                revision_xtf=$REVISION_XTF
+        fi
+    fi
+
     if branch_wants_rumpkernel_tests; then
 
     case $arch in