Summary
Add the ability to start smoketests on arm64 platform
The current implementation of smoketests is hardcoded to amd64 in several places.
- https://github.com/vyos/vyos-build/blob/88897baad505ff5d946f694877324ac87a295f0d/Makefile#L34
- https://github.com/vyos/vyos-build/blob/88897baad505ff5d946f694877324ac87a295f0d/scripts/check-qemu-install#L179
And probably some other
The idea in dehardcode ARCH or/and add arg ARCH
for example:
ARCH ?= amd64 ... .PHONY: test-no-interfaces-no-vpp .ONESHELL: test-no-interfaces-no-vpp: checkiso scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces --arch $(ARCH) --no-vpp build/live-image-$(ARCH).hybrid.iso
Start smoketest:
make ARCH=arm64 test-no-interfaces-no-vpp
The -bios option probably also should be changed:
-bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd
Use case
Execute smoketest and config load tests on different arch