|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 7/9] automation: make the domU of the Xilinx arm64 test optional
Every variant of xilinx-smoke-dom0less-arm64.sh boots a dom0less domU
next to dom0, and runs its check, domU_check, in that domU. A variant
that only runs a check in dom0 can't leave the domU out.
So, only create the domU if the variant sets domU_check. Without it,
no domU rootfs is built, the ImageBuilder config gets NUM_DOMUS=0, and
only dom0 boots.
The existing variants both set domU_check, so they still boot the domU
as before.
Signed-off-by: Julian Vetter <julian.vetter@xxxxxxxxxx>
---
Changes in v2:
- New patch
---
.../scripts/xilinx-smoke-dom0less-arm64.sh | 45 ++++++++++++-------
1 file changed, 28 insertions(+), 17 deletions(-)
diff --git a/automation/scripts/xilinx-smoke-dom0less-arm64.sh
b/automation/scripts/xilinx-smoke-dom0less-arm64.sh
index 343937d422..0060bdbd9b 100755
--- a/automation/scripts/xilinx-smoke-dom0less-arm64.sh
+++ b/automation/scripts/xilinx-smoke-dom0less-arm64.sh
@@ -9,6 +9,7 @@ test_variant=$1
### defaults
dom0_check=
+domU_check=
domU_passthrough_dtb=
domU_passthrough_path=
@@ -57,21 +58,23 @@ echo \"${passed}\"
;;
esac
-# DomU rootfs
-cp binaries/rootfs.cpio.gz binaries/domU-rootfs.cpio.gz
+if [ -n "${domU_check}" ]; then
+ # DomU rootfs
+ cp binaries/rootfs.cpio.gz binaries/domU-rootfs.cpio.gz
-# test-local configuration
-mkdir -p rootfs
-cd rootfs
-mkdir -p etc/local.d
-echo "#!/bin/sh
+ # test-local configuration
+ mkdir -p rootfs
+ cd rootfs
+ mkdir -p etc/local.d
+ echo "#!/bin/sh
${domU_check}
/bin/sh" > etc/local.d/xen.start
-chmod +x etc/local.d/xen.start
-find . | cpio -R 0:0 -H newc -o | gzip >> ../binaries/domU-rootfs.cpio.gz
-cd ..
-rm -rf rootfs
+ chmod +x etc/local.d/xen.start
+ find . | cpio -R 0:0 -H newc -o | gzip >> ../binaries/domU-rootfs.cpio.gz
+ cd ..
+ rm -rf rootfs
+fi
# Dom0 rootfs
cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
@@ -107,19 +110,27 @@ DOM0_KERNEL="Image"
DOM0_RAMDISK="dom0-rootfs.cpio.gz"
XEN_CMD="console=dtuart dtuart=serial0 dom0_mem=1024M console_timestamps=boot"
-NUM_DOMUS=1
-DOMU_KERNEL[0]="Image"
-DOMU_RAMDISK[0]="domU-rootfs.cpio.gz"
-DOMU_MEM[0]="1024"
-
LOAD_CMD="tftpb"
UBOOT_SOURCE="boot.source"
UBOOT_SCRIPT="boot.scr"' > $TFTP/config
+if [ -n "${domU_check}" ]; then
+ echo '
+NUM_DOMUS=1
+DOMU_KERNEL[0]="Image"
+DOMU_RAMDISK[0]="domU-rootfs.cpio.gz"
+DOMU_MEM[0]="1024"' >> $TFTP/config
+else
+ echo '
+NUM_DOMUS=0' >> $TFTP/config
+fi
+
cp -f binaries/xen $TFTP/
cp -f binaries/Image $TFTP/
cp -f binaries/dom0-rootfs.cpio.gz $TFTP/
-cp -f binaries/domU-rootfs.cpio.gz $TFTP/
+if [ -n "${domU_check}" ]; then
+ cp -f binaries/domU-rootfs.cpio.gz $TFTP/
+fi
# export dtb to artifacts
cp $TFTP/mpsoc_smmu.dtb .
--
2.53.0
--
Julian Vetter | Vates Hypervisor & Kernel Developer
XCP-ng & Xen Orchestra - Vates solutions
web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |