All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: ian.jackson@eu.citrix.com, Wei Liu <wei.liu2@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v5 9/9] mfi-common, make-flight: create XSM test jobs
Date: Tue, 3 Feb 2015 12:06:20 +0000	[thread overview]
Message-ID: <20150203120620.GB17714@zion.uk.xensource.com> (raw)
In-Reply-To: <1422962564.9323.42.camel@citrix.com>

On Tue, Feb 03, 2015 at 11:22:44AM +0000, Ian Campbell wrote:
> On Tue, 2015-02-03 at 10:36 +0000, Wei Liu wrote:
> > Duplicate Debian PV and HVM test jobs for XSM testing.
> 
> If ~/.xen-osstest/config contains e.g. "PlatformsArmhf midway cubietruck
> arndale" (correspodning to the platform-{...} flag being set on some
> host) then I think this will generate a per platform XSM test, which
> doesn't seem necessary since XSM isn't platform specific.
> 
> So:
> 
> > +  for xsm in $test_xsm ; do
> > +
> > +    # Basic PV Linux test with xl
> > +    for platform in '' `getplatforms $xenarch` ; do
> > +      suffix=${platform:+-$platform}
> > +      hostflags=${most_hostflags}${platform:+,platform-$platform}
> > +
> > +      job_create_test test-$xenarch$kern-$dom0arch-xl$suffix test-debian xl \
> > +                      $xenarch $dom0arch                                    \
> > +                      enable_xsm=$xsm                                       \
> > +                      $debian_runvars all_hostflags=$hostflags
> > +    done
> 
> I think you could pull the for platform loop outside of the for xsm one
> and remove '' from it, and readd the generic one standalone inside the
> xsm loop. (You can also simplify the suffix stuff in the platform loop
> since that is just to handle '' correctly).
> 
> Or add "if xsm = true and platform != '' -> continue"? 
> 

I use the "continue" trick and now the function looks like:

do_pv_debian_tests () {
-  # Basic PV Linux test with xl
-  for platform in '' `getplatforms $xenarch` ; do
-    suffix=${platform:+-$platform}
-    hostflags=${most_hostflags}${platform:+,platform-$platform}
-
-    job_create_test test-$xenarch$kern-$dom0arch-xl$suffix test-debian xl \
-            $xenarch $dom0arch                                   \
-            $debian_runvars all_hostflags=$hostflags
+  test_xsm=$(xenbranch_xsm_variants)
+
+  for xsm in $test_xsm ; do
+    # Basic PV Linux test with xl
+    for platform in '' `getplatforms $xenarch` ; do
+
+      # xsm test is not platform specifc
+      if [ "x$xsm" = "xtrue" -a "x$platform" != "x" ]; then
+          continue
+      fi
+
+      suffix=${platform:+-$platform}
+      hostflags=${most_hostflags}${platform:+,platform-$platform}
+
+      job_create_test test-$xenarch$kern-$dom0arch-xl$suffix test-debian xl \
+                      $xenarch $dom0arch                                    \
+                      enable_xsm=$xsm                                       \
+                      $debian_runvars all_hostflags=$hostflags
+    done
   done

-  job_create_test test-$xenarch$kern-$dom0arch-libvirt test-debian libvirt \
-            $xenarch $dom0arch                                       \
-            $debian_runvars all_hostflags=$most_hostflags
+  for xsm in $test_xsm ; do
+    job_create_test test-$xenarch$kern-$dom0arch-libvirt test-debian libvirt \
+                    $xenarch $dom0arch                                       \
+                    enable_xsm=$xsm                                          \
+                    $debian_runvars all_hostflags=$most_hostflags
+  done
 }


> Ian.

  reply	other threads:[~2015-02-03 12:06 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 10:36 [PATCH OSSTEST v5 0/9] XSM test case for OSSTest Wei Liu
2015-02-03 10:36 ` [PATCH OSSTEST v5 1/9] overlay: update overlay/etc/grub.d/20_linux_xen Wei Liu
2015-02-03 13:40   ` Ian Jackson
2015-02-03 14:28     ` Wei Liu
2015-02-03 10:36 ` [PATCH OSSTEST v5 2/9] ts-xen-build-prep: install checkpolicy Wei Liu
2015-02-03 10:36 ` [PATCH OSSTEST v5 3/9] ts-xen-build: build with XSM support if requested Wei Liu
2015-02-03 11:14   ` Ian Campbell
2015-02-03 13:45   ` Ian Jackson
2015-02-03 10:36 ` [PATCH OSSTEST v5 4/9] mfi-common: create build-$arch-xsm job Wei Liu
2015-02-03 13:48   ` Ian Jackson
2015-02-03 13:53     ` Wei Liu
2015-02-03 13:53     ` Ian Campbell
2015-02-03 10:36 ` [PATCH OSSTEST v5 5/9] Debian.pm: pass in XSM configuration to bootloader setup routines Wei Liu
2015-02-03 10:36 ` [PATCH OSSTEST v5 6/9] Debian.pm: load flask policy in uboot Wei Liu
2015-02-03 10:36 ` [PATCH OSSTEST v5 7/9] ts-xen-install: install Xen with XSM support if requested Wei Liu
2015-02-03 13:51   ` Ian Jackson
2015-02-03 10:36 ` [PATCH OSSTEST v5 8/9] make-flight: factor out do_pv_debian_tests Wei Liu
2015-02-03 11:15   ` Ian Campbell
2015-02-03 13:51   ` Ian Jackson
2015-02-03 10:36 ` [PATCH OSSTEST v5 9/9] mfi-common, make-flight: create XSM test jobs Wei Liu
2015-02-03 11:22   ` Ian Campbell
2015-02-03 12:06     ` Wei Liu [this message]
2015-02-03 12:08       ` Ian Campbell
2015-02-03 12:12         ` Wei Liu
2015-02-03 12:58           ` Ian Campbell
2015-02-03 13:37         ` Ian Jackson
2015-02-03 13:55   ` Ian Jackson
2015-02-03 14:25     ` Wei Liu
2015-02-03 13:40 ` [PATCH OSSTEST v5 0/9] XSM test case for OSSTest Ian Jackson
2015-02-03 13:41   ` Ian Campbell
2015-02-03 14:10     ` Wei Liu
2015-02-03 14:20       ` Ian Campbell
2015-02-03 13:42   ` Wei Liu
2015-02-03 14:51     ` Ian Jackson
2015-02-03 13:55 ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150203120620.GB17714@zion.uk.xensource.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.