Ian Campbell [Wed, 18 Dec 2013 09:32:04 +0000 (09:32 +0000)]
ts-debian-install: work around xen-create-image reliance on xend
The xen-tools script contains some sanity checks of the xend configuration and
fails if the configuration file is not present. This issue has been reported
upstream http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=732456.
Workaround this issue by creating a dummy xend-config.sxp if it does not
already exist. Include network- and vif- script options to keep the sanity
checks happy.
The workaround is enabled for all releases up to and including Wheezy in the
hopes that this will be fixed by the time Jessie is released, if not then the
osstest pushgate will hopefully catch this when Jessie is pushed to it.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Roger Pau Monné [Mon, 2 Dec 2013 15:22:53 +0000 (16:22 +0100)]
target_guest_lv_name: move into TestSupport; fix FreeBSD test
Move from lvm_lv_name in Debian.pm, and use it where appropriate in
ts-freebsd-install. This will fix the bug where ts-freebsd-install
fails on hsots with "-" in their hostname (and hence their vg name).
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Jackson [Thu, 28 Nov 2013 18:20:04 +0000 (18:20 +0000)]
target_file_exists: Use non-root access for this check
The new call of this in built_stash_file makes ts-*-build require root
access, which is not desirable.
The only other caller of target_file_exists is in ts-xen-install where
it is called on
/etc/default/xencommons
/etc/sysconfig/xencommons
/etc/default/xend
/etc/sysconfig/xend
all of which should be accessible as a normal user in a default config.
So change the access to use target_cmd_output rather than
target_cmd_output_root.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
If this property is set then the environment variable
(a) DISTCC_HOSTS is set to the value of the host property
(a) CCACHE_PREFIX is set to "distcc"
which will result in distcc being used as configured.
distcc had better be installed for such hosts.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Ian Jackson [Thu, 21 Nov 2013 12:26:43 +0000 (12:26 +0000)]
cr-for-branches: when doing pre-pull from incoming, take out lock correctly
I.e. with -f if caller specified -q, rather than always using -w. -q
would make the script carry on if it didn't manage to get the lock and
do the pull, which would be wrong. -w is wrong because it can block
for another long-running script.
Ian Campbell [Wed, 20 Nov 2013 09:24:11 +0000 (09:24 +0000)]
Make libfdt available at build and runtime.
This library is only available from Wheezy onwards and is only used by ARM.
Since ARM tests require Wheezy just install on Wheezy onwards. The presence of
this library would be harmless if x86 were using Wheezy (but it currently uses
Squeeze so is totally unaffected)
Ian Campbell [Fri, 1 Nov 2013 09:33:08 +0000 (09:33 +0000)]
standalone-reset: fix check for existing d-i and creation of symlink
We need to check for "$diver-$suite" not just "$diver" now
Also when creating the current symlink only do so if
mg-debian-installer-update did something, since it will now silently ignore
unavailable combinations (e.g. armhf on Squeeze)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Campbell [Fri, 25 Oct 2013 10:29:42 +0000 (11:29 +0100)]
PDU/xenuse: Support xenuse on machine not locked by current user
xenuse checks that whoever is trying to reboot a machine "owns" that machine
via a locking mechanism. This is usually fine doesn't work well when one wants
to book a machine out of the osstest pool for adhoc testing. In this case
machine ownership is maintained by osstest ahd the machine remains locked to
osstest as far as xenuse is concerned.
Therefore add a global configuration option and perhost override to override
$USER (which xenuse obeys) to osstest.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Campbell [Thu, 31 Oct 2013 16:53:13 +0000 (16:53 +0000)]
ts-kernel-build: Enable CONFIG_DEBUG_INFO_REDUCED
This makes the resulting vmlinux file with debug symbols much more manageable
without compromising the usefulness for converting addresses into line numbers
etc.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian Campbell [Tue, 8 Oct 2013 17:27:26 +0000 (18:27 +0100)]
Serial: collect serial logs from an http server
This relies on wget and httpd colluding to set the mtimes on the downloaded
files, which works with at least the one server I care about (the apache on
the conserver handling the marilith boxes)
Ian Campbell [Fri, 27 Sep 2013 12:17:27 +0000 (13:17 +0100)]
make-flight: further reduce unwanted combinations
Drop armhf build and test jobs from tests of branches:
- qemu-upstream-unstable
- qemu-upstream-4.2-testing
- qemu-upstream-4.3-testing
- linux-3.10
- linux-3.4
In principal these are harmless but in practice they are stretching our
available armhf build resources very thin. In addition spurious armhf failures
now won't affect these branches.
Drop non-armhf arch builds and tests from linux-arm-xen.
Ian Campbell [Fri, 27 Sep 2013 09:03:15 +0000 (10:03 +0100)]
TestSupport: enable cacheing git on no-reinstall hosts
Host must be manually configured to have the cacheing-git script installed as
$ho-{Homedir}/bin/git and to mount the hosts git cache directory on
/volatile/git-cache.
Ian Campbell [Wed, 18 Sep 2013 19:41:51 +0000 (20:41 +0100)]
make-flight: Set a per-suite host flag on each job
For armhf tests we hardcode wheezy while for everything else we continue to use
the default (currently squeeze). This can be removed once osstest moves to
Wheezy as the default.
Ian Campbell [Thu, 12 Sep 2013 15:18:20 +0000 (16:18 +0100)]
Debian: correct ARM u-boot boot runes
We currently need a comptible node of "xen,multiboot-module" as well as the
specific type. Also make sure the /chosen node specifies the number of address
and size-cells we will be using in the modules, otherwise Xen cannot parse
them.
Load Xen a bit higher up and use a variable so we don't need to update two
places.
Log some stuff as we go as well, so we can tell what was going on more easily.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>