From patchwork Wed Jan 22 09:54:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 23492 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8BEE4218DC for ; Wed, 22 Jan 2014 10:31:27 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id e16sf294077qcx.8 for ; Wed, 22 Jan 2014 02:31:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=04WcUCJTlgTY1TrQE46F9l0KDGlTksXqG183xyXHepg=; b=AuRstCIwCZRAx+nzzvzzPJi7zcvK4iWPHe+EKM9/JCphOWQZqqH8vUQCwf4hNpH4TS SASoADaxmnE8qhdkCIYXzWJLXDKMjVfcOuppY0RIhpubunlMX8s/Q4eTZv2Ig+jEtxX2 BMh6yt3avH8g2QcNmuIL9xNuJcA56Wpy+R6E2Dxbm8D4/NNT+R5KEPy+VqY1DLtI9arA GDuc8sz5lqLEscEXj+QrbTVviQBUojG/Nj/lqjwkdN4aKGQwKzkxPIZOZe3iZsfmlmXA Kjr6Nr6ihtgVMO2O1/2VJOWmKtFPMSZAtBZxxWC1XjGeg8oTquocOuijd2EVZuzK8fFC i4FA== X-Gm-Message-State: ALoCoQn5T6np3glqVL28q+PhohKSg3qX59cX2/1ZxebIaAp6zD/Ygq+zkH8J6DBX+sFZur5BzAcW X-Received: by 10.58.230.72 with SMTP id sw8mr245563vec.5.1390386686706; Wed, 22 Jan 2014 02:31:26 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.65 with SMTP id a59ls32436qge.72.gmail; Wed, 22 Jan 2014 02:31:26 -0800 (PST) X-Received: by 10.220.159.4 with SMTP id h4mr343111vcx.1.1390386686595; Wed, 22 Jan 2014 02:31:26 -0800 (PST) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id ry8si4268819vcb.46.2014.01.22.02.31.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 02:31:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id ia6so101747vcb.24 for ; Wed, 22 Jan 2014 02:31:26 -0800 (PST) X-Received: by 10.220.133.148 with SMTP id f20mr378497vct.2.1390386686421; Wed, 22 Jan 2014 02:31:26 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp175395vcz; Wed, 22 Jan 2014 02:31:25 -0800 (PST) X-Received: by 10.50.141.234 with SMTP id rr10mr7859254igb.11.1390386685684; Wed, 22 Jan 2014 02:31:25 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id g19si13327961igf.37.2014.01.22.02.31.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 22 Jan 2014 02:31:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W5uWj-0006nn-3T; Wed, 22 Jan 2014 09:55:17 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W5uWh-0006ju-1H for xen-devel@lists.xen.org; Wed, 22 Jan 2014 09:55:15 +0000 Received: from [85.158.143.35:34573] by server-3.bemta-4.messagelabs.com id E4/0D-32360-2859FD25; Wed, 22 Jan 2014 09:55:14 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-7.tower-21.messagelabs.com!1390384503!385!4 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.9.16; banners=-,-,- X-VirusChecked: Checked Received: (qmail 26715 invoked from network); 22 Jan 2014 09:55:13 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-7.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 22 Jan 2014 09:55:13 -0000 X-IronPort-AV: E=Sophos;i="4.95,698,1384300800"; d="scan'208";a="95230022" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 22 Jan 2014 09:55:13 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.2.342.4; Wed, 22 Jan 2014 04:55:12 -0500 Received: from spare.cam.xci-test.com ([10.80.2.80] helo=kazak.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1W5uWU-0005Rs-J3; Wed, 22 Jan 2014 09:55:02 +0000 From: Ian Campbell To: Date: Wed, 22 Jan 2014 09:54:57 +0000 Message-ID: <1390384501-20552-13-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390384419.32519.32.camel@kazak.uk.xensource.com> References: <1390384419.32519.32.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST 13/17] make-flight: Separate matrix iteration from test job creation X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Signed-off-by: Ian Campbell --- make-flight | 180 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 91 insertions(+), 89 deletions(-) diff --git a/make-flight b/make-flight index e1b65b2..97421f2 100755 --- a/make-flight +++ b/make-flight @@ -95,97 +95,12 @@ test_matrix_branch_filter_callback () { return 0 } -for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do - - if [ "x$xenarch" = xdisable ]; then continue; fi - - test_matrix_branch_filter_callback || continue - - case "$xenarch" in - armhf) - # Arm from 4.3 onwards only - case "$xenbranch" in - xen-3.*-testing) continue;; - xen-4.0-testing) continue;; - xen-4.1-testing) continue;; - xen-4.2-testing) continue;; - *) ;; - esac - ;; - i386) - # 32-bit Xen is dropped from 4.3 onwards - case "$xenbranch" in - xen-3.*-testing) ;; - xen-4.0-testing) ;; - xen-4.1-testing) ;; - xen-4.2-testing) ;; - *) continue ;; - esac - ;; - amd64) - ;; - esac - - case "$xenarch" in - armhf) suite="wheezy"; guestsuite="wheezy";; - *) suite=$defsuite; guestsuite=$defguestsuite;; - esac - - if [ $suite != $defsuite ] ; then - suite_runvars="host_suite=$suite" - else - suite_runvars= - fi - - case "$xenbranch" in - xen-3.*-testing) onetoolstack=xend ;; - xen-4.0-testing) onetoolstack=xend ;; - xen-4.1-testing) onetoolstack=xend ;; - *) onetoolstack=xl ;; - esac - - for kern in ''; do - - case $kern in - '') - kernbuild=pvops - kernkind=pvops - ;; - *) echo >&2 "kernkind ? $kern"; exit 1 ;; - esac - - for dom0arch in i386 amd64 armhf; do - - case ${xenarch}_${dom0arch} in - amd64_amd64) ;; - amd64_i386) ;; - i386_i386) ;; - armhf_armhf) ;; - *) continue ;; - esac - - eval " - arch_runvars=\"\$ARCH_RUNVARS_$dom0arch\" - " - - debian_runvars="debian_kernkind=$kernkind debian_arch=$dom0arch" - if [ $guestsuite != $defguestsuite ] ; then - debian_runvars="$debian_runvars debian_suite=$guestsuite" - fi - - most_hostflags="arch-$dom0arch,arch-xen-$xenarch,suite-$suite,purpose-test" - - most_runvars=" - arch=$dom0arch \ - kernbuildjob=${bfi}build-$dom0arch-$kernbuild \ - kernkind=$kernkind \ - $arch_runvars $suite_runvars - " +test_matrix_do_one () { if [ $dom0arch = armhf ]; then job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ $xenarch $dom0arch \ $debian_runvars all_hostflags=$most_hostflags - continue + return fi job_create_test test-$xenarch$kern-$dom0arch-pv test-debian xend \ @@ -324,11 +239,98 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do done fi +} - done +for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do - done + if [ "x$xenarch" = xdisable ]; then continue; fi + + test_matrix_branch_filter_callback || continue + + case "$xenarch" in + armhf) + # Arm from 4.3 onwards only + case "$xenbranch" in + xen-3.*-testing) continue;; + xen-4.0-testing) continue;; + xen-4.1-testing) continue;; + xen-4.2-testing) continue;; + *) ;; + esac + ;; + i386) + # 32-bit Xen is dropped from 4.3 onwards + case "$xenbranch" in + xen-3.*-testing) ;; + xen-4.0-testing) ;; + xen-4.1-testing) ;; + xen-4.2-testing) ;; + *) continue ;; + esac + ;; + amd64) + ;; + esac + + case "$xenarch" in + armhf) suite="wheezy"; guestsuite="wheezy";; + *) suite=$defsuite; guestsuite=$defguestsuite;; + esac + + if [ $suite != $defsuite ] ; then + suite_runvars="host_suite=$suite" + else + suite_runvars= + fi + + case "$xenbranch" in + xen-3.*-testing) onetoolstack=xend ;; + xen-4.0-testing) onetoolstack=xend ;; + xen-4.1-testing) onetoolstack=xend ;; + *) onetoolstack=xl ;; + esac + + for kern in ''; do + + case $kern in + '') + kernbuild=pvops + kernkind=pvops + ;; + *) echo >&2 "kernkind ? $kern"; exit 1 ;; + esac + + for dom0arch in i386 amd64 armhf; do + + case ${xenarch}_${dom0arch} in + amd64_amd64) ;; + amd64_i386) ;; + i386_i386) ;; + armhf_armhf) ;; + *) continue ;; + esac + + eval " + arch_runvars=\"\$ARCH_RUNVARS_$dom0arch\" + " + + debian_runvars="debian_kernkind=$kernkind debian_arch=$dom0arch" + if [ $guestsuite != $defguestsuite ] ; then + debian_runvars="$debian_runvars debian_suite=$guestsuite" + fi + most_hostflags="arch-$dom0arch,arch-xen-$xenarch,suite-$suite,purpose-test" + + most_runvars=" + arch=$dom0arch \ + kernbuildjob=${bfi}build-$dom0arch-$kernbuild \ + kernkind=$kernkind \ + $arch_runvars $suite_runvars + " + + test_matrix_do_one + done + done done echo $flight