From a1a45f5c1ff7e1f9859beee84609e439d68587ee Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 21 Jul 2016 11:50:36 +0100 Subject: [PATCH] mfi-common: create xtf build job for 4.4 onwards Xen 4.4 is the oldest one that we still provide security support at this point in time. Signed-off-by: Wei Liu --- mfi-common | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/mfi-common b/mfi-common index 8f27923d..76b93d13 100644 --- a/mfi-common +++ b/mfi-common @@ -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 -- 2.39.5