mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
CI: save toolstack artifact as cpio.gz
This avoids the need to re-compress it in every test job. This saves minutes of wallclock time. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
This commit is contained in:
1 parent
464d4dd456
commit
4611ae6fb8
7 files changed
+10
-9
No files matched your search
@@ -108,7 +108,7 @@ else
|
||||
# Note: Some smoke tests depending on finding binaries/xen on a full build
|
||||
# even though dist/ contains everything, while some containers don't even
|
||||
# build Xen
|
||||
cp -r dist binaries/
|
||||
(cd dist/install; find | cpio -o -H newc | gzip) > binaries/xen-tools.cpio.gz
|
||||
cp -r tools/tests binaries/
|
||||
collect_xen_artefacts
|
||||
fi
|
||||
@@ -30,11 +30,11 @@ cd ..
|
||||
|
||||
# Dom0 rootfs
|
||||
cp rootfs.cpio.gz dom0-rootfs.cpio.gz
|
||||
cat xen-tools.cpio.gz >> dom0-rootfs.cpio.gz
|
||||
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
cp -ar ../dist/install/* .
|
||||
mkdir -p root etc/local.d
|
||||
mv ../domU-rootfs.cpio.gz ./root
|
||||
cp ../bzImage ./root
|
||||
|
||||
@@ -29,11 +29,11 @@ cd ..
|
||||
|
||||
# Dom0 rootfs
|
||||
cp rootfs.cpio.gz dom0-rootfs.cpio.gz
|
||||
cat xen-tools.cpio.gz >> dom0-rootfs.cpio.gz
|
||||
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
cp -ar ../dist/install/* .
|
||||
mkdir -p etc/local.d root
|
||||
mv ../domU-rootfs.cpio.gz ./root
|
||||
cp ../Image ./root
|
||||
|
||||
@@ -116,11 +116,11 @@ cd ..
|
||||
|
||||
# Dom0 rootfs
|
||||
cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
|
||||
cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
|
||||
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
cp -ar ../binaries/dist/install/* .
|
||||
mkdir -p etc/local.d
|
||||
|
||||
echo "#!/bin/bash
|
||||
|
||||
@@ -189,12 +189,12 @@ fi
|
||||
|
||||
# Dom0 rootfs
|
||||
cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
|
||||
cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
|
||||
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
mkdir -p boot etc/local.d
|
||||
cp -ar ../binaries/dist/install/* .
|
||||
cp -ar ../binaries/tests .
|
||||
cp -a ../automation/scripts/run-tools-tests tests/
|
||||
|
||||
@@ -228,8 +228,10 @@ else
|
||||
fi
|
||||
|
||||
chmod +x etc/local.d/xen.start
|
||||
mkdir -p etc/xen
|
||||
echo "$domU_config" > etc/xen/domU.cfg
|
||||
|
||||
mkdir -p etc/default
|
||||
echo "XENCONSOLED_TRACE=all" >> etc/default/xencommons
|
||||
echo "QEMU_XEN=/bin/false" >> etc/default/xencommons
|
||||
mkdir -p var/log/xen/console
|
||||
|
||||
@@ -107,6 +107,7 @@ rm -rf rootfs
|
||||
|
||||
# Dom0 rootfs
|
||||
cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
|
||||
cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
|
||||
if [[ "${TEST}" == argo ]]; then
|
||||
cat binaries/argo.cpio.gz >> binaries/dom0-rootfs.cpio.gz
|
||||
fi
|
||||
@@ -114,8 +115,7 @@ fi
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
mkdir -p boot etc/local.d
|
||||
cp -ar ../binaries/dist/install/* .
|
||||
mkdir -p boot etc/local.d etc/xen etc/default
|
||||
echo "#!/bin/bash
|
||||
set -x
|
||||
export LD_LIBRARY_PATH=/usr/local/lib
|
||||
|
||||
@@ -56,12 +56,11 @@ rm -rf rootfs
|
||||
|
||||
# Dom0 rootfs
|
||||
cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
|
||||
cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
|
||||
|
||||
# test-local configuration
|
||||
mkdir -p rootfs
|
||||
cd rootfs
|
||||
cp -ar ../binaries/dist/install/* .
|
||||
|
||||
mkdir -p etc/local.d
|
||||
echo "#!/bin/bash
|
||||
|
||||
|
||||