From: Ian Jackson Subject: [OSSTEST PATCH 9/9] make-flight: Test rump kernels only when needed Date: Fri, 27 Jun 2014 17:58:22 +0100 Message-ID: <1403888302-30822-10-git-send-email-ian.jackson@eu.citrix.com> References: <1403888302-30822-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X0ZTw-00009m-7F for xen-devel@lists.xenproject.org; Fri, 27 Jun 2014 16:58:36 +0000 In-Reply-To: <1403888302-30822-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Introduce a new subroutine branch_wants_rumpkernel_tests and call it before making the rumpuserxen build and test jobs. The default is not to include a rumpuserxen test. We include it for rumpuserxen itself, xen, linux (in case there is a frontend/backend incompatibility), and osstest. Signed-off-by: Ian Jackson --- make-flight | 2 ++ mfi-common | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/make-flight b/make-flight index a53fab0..fbda440 100755 --- a/make-flight +++ b/make-flight @@ -116,6 +116,8 @@ test_matrix_branch_filter_callback () { } do_rumpkernel_tests () { + branch_wants_rumpkernel_tests || return 0 + rumparch=$dom0arch job_create_test test-$xenarch$kern-$dom0arch-rumpuserxen-$rumparch \ test-rumpuserxen xl \ diff --git a/mfi-common b/mfi-common index d1b2737..5dcb2ee 100644 --- a/mfi-common +++ b/mfi-common @@ -31,6 +31,16 @@ stripy () { eval "$out_vn=\"\$out_$out_val\"" } +branch_wants_rumpkernel_tests () { + case "$branch" in + osstest*) return 0;; + rump*) return 0;; + xen*) return 0;; + linux*) return 0;; + *) return 1;; + esac +} + create_build_jobs () { local arch @@ -180,6 +190,8 @@ create_build_jobs () { fi + if branch_wants_rumpkernel_tests; then + case $arch in i386|amd64) ./cs-job-create $flight build-$arch-rumpuserxen build-rumpuserxen \ @@ -197,6 +209,8 @@ create_build_jobs () { ;; esac + fi + case "$arch" in armhf) continue;; # don't do any other kernel builds esac -- 1.7.10.4