make-flight: override the Debian guest suite on armhf
PATCH 1/1 make-flight: override the Debian guest suite on armhf
We already override the host Debian suite but we need to override the guest too (since armhf doesn't exist in squeeze).
Consolidate the Debian guest vars in to one place and add debian_suite runvar when appropriate.
--- make-flight | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-)
make-flight +16 -25
@@ -30,6 +30,7 @@ flight=`./cs-flight-create $blessing $branch` . cri-common defsuite=`getconfig DebianSuite` +defguestsuite=`getconfig GuestDebianSuite` xenrt_images=/usr/groups/images/autoinstall
@@ -324,8 +325,8 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do esac case "$xenarch" in - armhf) suite="wheezy";; - *) suite=$defsuite;; + armhf) suite="wheezy"; guestsuite="wheezy";; + *) suite=$defsuite; guestsuite=$defguestsuite;; esac if [ $suite != $defsuite ] ; then
@@ -372,6 +373,11 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do if [ x$kern = x-xcpkern -a $dom0arch != i386 ]; then continue; fi + 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="
@@ -383,23 +389,17 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do if [ $dom0arch = armhf ]; then job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ $xenarch $dom0arch \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags continue fi job_create_test test-$xenarch$kern-$dom0arch-pv test-debian xend \ $xenarch $dom0arch \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ $xenarch $dom0arch \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags if [ $xenarch = amd64 -a $dom0arch = i386 -a "$kern" = "" ]; then
@@ -487,8 +487,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do job_create_test test-$xenarch$kern-$dom0arch-pair test-pair \ $onetoolstack $xenarch $dom0arch \ !host !host_hostflags \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ + $debian_runvars \ all_hostflags=$most_hostflags,equiv-1 if [ $xenarch = amd64 -a $dom0arch = amd64 ]; then
@@ -498,9 +497,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do job_create_test test-$xenarch$kern-$dom0arch-xl-sedf$pin \ test-debian xl $xenarch $dom0arch \ guests_vcpus=4 xen_boot_append="sched=sedf loglvl=all ${pin:+dom0_vcpus_pin}" linux_boot_append='loglevel=9 debug' \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags done
@@ -510,16 +507,12 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do job_create_test test-$xenarch$kern-$dom0arch-xl-multivcpu \ test-debian xl $xenarch $dom0arch guests_vcpus=4 \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags job_create_test test-$xenarch$kern-$dom0arch-xl-credit2 \ test-debian xl $xenarch $dom0arch \ guests_vcpus=4 xen_boot_append='sched=credit2' \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - all_hostflags=$most_hostflags + $debian_runvars all_hostflags=$most_hostflags fi
@@ -530,9 +523,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do job_create_test test-$xenarch$kern-$dom0arch-xl-pcipt-intel \ test-debian-nomigr xl $xenarch $dom0arch \ guests_vcpus=4 \ - debian_kernkind=$kernkind \ - debian_arch=$dom0arch \ - debian_pcipassthrough_nic=host \ + $debian_runvars debian_pcipassthrough_nic=host \ all_hostflags=$most_hostflags,hvm-$cpuvendor,pcipassthrough-nic done
Signature · 1 line
1.8.5.2
Ian Campbell writes ("[PATCH OSSTEST] make-flight: override the Debian guest suite on armhf"):
Quoted 5 lines
We already override the host Debian suite but we need to override the guest too (since armhf doesn't exist in squeeze).
Consolidate the Debian guest vars in to one place and add
debian_suiterunvar when appropriate.
LGTM.
Please do push this right away if you haven't already.
Thanks,
Ian.
Quoted 10 lines · Ian Jackson
Ian Campbell writes ("[PATCH OSSTEST] make-flight: override the Debian guest suite on armhf"):
Quoted 5 lines
We already override the host Debian suite but we need to override the guest too (since armhf doesn't exist in squeeze).
Consolidate the Debian guest vars in to one place and add
debian_suiterunvar when appropriate.LGTM.
Acked-by Ian Jackson <[email protected]>
Thanks. This reminded me that I forgot my S-o-b so I added that and pushed as you suggested.
I also forgot to S-o-b the previous patch I pushed this morning to fix the fall out from "do not install xend for xl tests". Sigh.
I should also have published that here. Forgetting to do so was bad form, sorry. It is below.
Ian.
commit 3d62c0e0fa6e71dcb6c5639070849f91b92ce756
Author: Ian Campbell <[email protected]> Date: Fri Jan 10 09:55:10 2014 +0000
make-flight: Adjust buildjob runvar for xend vs non-xend tests
Currently we only do so for xenbuildjob which only contains the hypervisor and not the tools, for those we need buildjob. In principal the xenbuildjob output should be identical for both xend and non-xend builds, but we use a matching set of consistency.
This adds a xend suffix to buildjob for exactly test-amd64-i386-pv, test-amd64-amd64-pv, test-amd64-i386-xend-winxpsp3, test-amd64-i386-xend-qemut-winxpsp3 which is the expected set of xend jobs.
make-flight +21 -16
@@ -226,11 +226,13 @@ job_create_test () { local recipe=$1; shift local toolstack=$1; shift local xenarch=$1; shift + local dom0arch=$1; shift local job_md5=`echo "$job" | md5sum` job_md5="${job_md5% -}" xenbuildjob="${bfi}build-$xenarch" + buildjob="${bfi}build-$dom0arch" case "$xenbranch:$toolstack" in xen-3.*-testing:*) ;;
@@ -238,7 +240,9 @@ job_create_test () { xen-4.1-testing:*) ;; xen-4.2-testing:*) ;; xen-4.3-testing:*) ;; - *:xend) xenbuildjob="$xenbuildjob-xend";; + *:xend) xenbuildjob="$xenbuildjob-xend" + buildjob="${bfi}build-$dom0arch-xend" + ;; esac if [ "x$JOB_MD5_PATTERN" != x ]; then
@@ -275,8 +279,9 @@ job_create_test () { ;; esac - ./cs-job-create $flight $job $recipe toolstack=$toolstack \ - $RUNVARS $TEST_RUNVARS $most_runvars xenbuildjob=$xenbuildjob "$@" + ./cs-job-create $flight $job $recipe toolstack=$toolstack \ + $RUNVARS $TEST_RUNVARS $most_runvars \ + xenbuildjob=$xenbuildjob buildjob=$buildjob "$@" } for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do
@@ -372,13 +377,12 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do most_runvars=" arch=$dom0arch \ kernbuildjob=${bfi}build-$dom0arch-$kernbuild \ - buildjob=${bfi}build-$dom0arch \ kernkind=$kernkind \ $arch_runvars $suite_runvars " if [ $dom0arch = armhf ]; then job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ - $xenarch \ + $xenarch $dom0arch \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \ all_hostflags=$most_hostflags
@@ -386,13 +390,13 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do fi job_create_test test-$xenarch$kern-$dom0arch-pv test-debian xend \ - $xenarch \ + $xenarch $dom0arch \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \ all_hostflags=$most_hostflags job_create_test test-$xenarch$kern-$dom0arch-xl test-debian xl \ - $xenarch \ + $xenarch $dom0arch \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \ all_hostflags=$most_hostflags
@@ -402,7 +406,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do for freebsdarch in amd64 i386; do job_create_test test-$xenarch$kern-$dom0arch$qemuu_suffix-freebsd10-$freebsdarch \ - test-freebsd xl $xenarch \ + test-freebsd xl $xenarch $dom0arch \ freebsd_arch=$freebsdarch \ freebsd_image=${FREEBSD_IMAGE_PREFIX-FreeBSD-10.0-BETA3-}$freebsdarch${FREEBSD_IMAGE_SUFFIX--20131103-r257580.qcow2.xz} \ all_hostflags=$most_hostflags
@@ -448,7 +452,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do job_create_test \ test-$xenarch$kern-$dom0arch-$toolstack$qemuu_suffix-winxpsp3$vcpus_suffix \ - test-win $toolstack $xenarch $qemuu_runvar \ + test-win $toolstack $xenarch $dom0arch $qemuu_runvar \ win_image=winxpsp3.iso $vcpus_runvars \ all_hostflags=$most_hostflags,hvm
@@ -458,7 +462,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do if [ $xenarch = amd64 ]; then job_create_test test-$xenarch$kern-$dom0arch-xl$qemuu_suffix-win7-amd64 \ - test-win xl $xenarch $qemuu_runvar \ + test-win xl $xenarch $dom0arch $qemuu_runvar \ win_image=win7-x64.iso \ all_hostflags=$most_hostflags,hvm
@@ -469,7 +473,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do for cpuvendor in amd intel; do job_create_test test-$xenarch$kern-$dom0arch$qemuu_suffix-rhel6hvm-$cpuvendor \ - test-rhelhvm xl $xenarch \ + test-rhelhvm xl $xenarch $dom0arch \ redhat_image=rhel-server-6.1-i386-dvd.iso \ all_hostflags=$most_hostflags,hvm-$cpuvendor \ $qemuu_runvar
@@ -481,7 +485,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do done # qemuu_suffix job_create_test test-$xenarch$kern-$dom0arch-pair test-pair \ - $onetoolstack $xenarch \ + $onetoolstack $xenarch $dom0arch \ !host !host_hostflags \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \
@@ -492,7 +496,7 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do for pin in '' -pin; do job_create_test test-$xenarch$kern-$dom0arch-xl-sedf$pin \ - test-debian xl $xenarch \ + test-debian xl $xenarch $dom0arch \ guests_vcpus=4 xen_boot_append="sched=sedf loglvl=all ${pin:+dom0_vcpus_pin}" linux_boot_append='loglevel=9 debug' \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \
@@ -505,13 +509,13 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do if [ $xenarch = amd64 -a $dom0arch = i386 ]; then job_create_test test-$xenarch$kern-$dom0arch-xl-multivcpu \ - test-debian xl $xenarch guests_vcpus=4 \ + test-debian xl $xenarch $dom0arch guests_vcpus=4 \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \ all_hostflags=$most_hostflags job_create_test test-$xenarch$kern-$dom0arch-xl-credit2 \ - test-debian xl $xenarch \ + test-debian xl $xenarch $dom0arch \ guests_vcpus=4 xen_boot_append='sched=credit2' \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \
@@ -524,7 +528,8 @@ for xenarch in ${TEST_ARCHES- i386 amd64 armhf } ; do for cpuvendor in intel; do job_create_test test-$xenarch$kern-$dom0arch-xl-pcipt-intel \ - test-debian-nomigr xl $xenarch guests_vcpus=4 \ + test-debian-nomigr xl $xenarch $dom0arch \ + guests_vcpus=4 \ debian_kernkind=$kernkind \ debian_arch=$dom0arch \ debian_pcipassthrough_nic=host \