[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 6/9] ts-xen-build: Build the livepatch test-cases
The test-cases are quite tied to the Xen hypervisor. In fact they must be built on the same exact xen.gz (and correspondigly xen-syms) that will be running on the host. This is due to build-id dependency which the test-cases are built with. The hypervisor directory only has the `tests` target - no 'install-tests' or such (due to issues with pulling in Config.mk). Hence we manually copy the resulting livepatches in dist/xenlptinstall - which ends up being tarred up into xenlptdist.tar.gz Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- v1: New posting v2: Put the livepatch test-cases in xentlpdist.tar.gz file Expand the commit description. --- ts-xen-build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ts-xen-build b/ts-xen-build index 7c6a9b6..f15bcca 100755 --- a/ts-xen-build +++ b/ts-xen-build @@ -165,6 +165,18 @@ END END store_runvar("flaskpolicy", "xenpolicy-" . $xen_version); } + buildcmd_stamped_logged(600, 'xen', 'xenlpt-build', '',<<END,'') if $dokconfig; + if test -d xen/test; then + $make_prefix make -C xen tests + fi +END + buildcmd_stamped_logged(600, 'xen', 'xenlpt-install', '',<<END,'') if $dokconfig; + if test -d xen/test; then + mkdir -p dist/xenlptinstall/usr/lib/debug + livepatch_files=`find xen/test/livepatch -name '*.livepatch' -print` + cp \$livepatch_files dist/xenlptinstall/usr/lib/debug + fi +END } sub divide () { @@ -205,7 +217,7 @@ END } sub stash () { - foreach my $part ('', 'xen') { + foreach my $part ('', 'xen', 'xenlpt') { if (target_dir_exists($ho, "$builddir/xen/dist/${part}install")) { built_stash($ho, $builddir, "xen/dist/${part}install", -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |