Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hKWEs-00048u-Jy for mharc-grub-devel@gnu.org; Sat, 27 Apr 2019 18:56:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKWEm-00044R-Vo for grub-devel@gnu.org; Sat, 27 Apr 2019 18:56:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hKWEl-0004hl-GR for grub-devel@gnu.org; Sat, 27 Apr 2019 18:56:04 -0400 Received: from zulu616.server4you.de ([188.138.100.120]:49390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hKWEl-0004gr-8t for grub-devel@gnu.org; Sat, 27 Apr 2019 18:56:03 -0400 Received: from server.alex.local (x5f7241a8.dyn.telefonica.de [95.114.65.168]) by csgraf.de (Postfix) with ESMTPSA id A46AD3900635 for ; Sun, 28 Apr 2019 00:56:01 +0200 (CEST) From: Alexander Graf To: grub-devel@gnu.org Subject: [PATCH 6/6] travis: Add smoke tests for arm and aarch64 Date: Sun, 28 Apr 2019 00:55:59 +0200 Message-Id: <20190427225559.15179-8-agraf@csgraf.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190427225559.15179-1-agraf@csgraf.de> References: <20190427225559.15179-1-agraf@csgraf.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 188.138.100.120 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Apr 2019 22:56:07 -0000 We've had an arm regression in grub recently where grub would not even be able to boot up anymore. So let's include arm and aarch64 in our simple "hello world" smoke tests as well. For OVMF on ARM to work, we need a newer version of QEMU, add a PPA dependency for it. Signed-off-by: Alexander Graf --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 29013bb9b..e6eab6ecf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ language: c addons: apt: + sources: + - sourceline: 'ppa:jacob/virtualisation' packages: - libsdl1.2-dev - lzop @@ -32,6 +34,8 @@ before_script: - for i in $CROSS_TARGETS; do ( cd /tmp/cross; wget -t 3 -O - https://mirrors.kernel.org/pub/tools/crosstool/files/bin/x86_64/8.1.0/x86_64-gcc-8.1.0-nolibc-$i.tar.xz | tar xJ ); done + - if [[ "$GRUB_TARGETS" == *"arm64-efi"* ]]; then wget http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/3525/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.fd -O QEMU_EFI.aarch64.fd; fi + - if [[ "$GRUB_TARGETS" == *"arm-efi"* ]]; then wget http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/3525/QEMU-ARM/RELEASE_GCC5/QEMU_EFI.fd -O QEMU_EFI.arm.fd; fi script: # Comments must be outside the command strings below, or the Travis parser @@ -65,7 +69,9 @@ script: - ( for target in $GRUB_TARGETS; do grub-mkimage -c grub.cfg -p / -O $target -o grub-$target echo reboot normal || exit; done ) # Run images we know how to run. - - if [[ "$GRUB_TARGETS" == *"x86_64-efi"* ]]; then qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -m 512 -no-reboot -nographic -net nic -net user,tftp=.,bootfile=grub-x86_64-efi | tee grub.log && grep "hello world" grub.log; fi + - if [[ "$GRUB_TARGETS" == *"x86_64-efi"* ]]; then qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -m 512 -no-reboot -nographic -net nic -net user,tftp=.,bootfile=grub-x86_64-efi | tee grub.log && grep "hello world" grub.log; fi + - if [[ "$GRUB_TARGETS" == *"arm64-efi"* ]]; then qemu-system-aarch64 -M virt -cpu cortex-a57 -bios QEMU_EFI.aarch64.fd -m 512 -no-reboot -nographic -net nic -net user,tftp=.,bootfile=grub-arm64-efi | tee grub.log && grep "hello world" grub.log; fi + - if [[ "$GRUB_TARGETS" == *"arm-efi"* ]]; then qemu-system-arm -M virt -cpu cortex-a15 -bios QEMU_EFI.arm.fd -m 512 -no-reboot -nographic -net nic -net user,tftp=.,bootfile=grub-arm-efi | tee grub.log && grep "hello world" grub.log; fi matrix: include: -- 2.16.4