Received: from list by lists.gnu.org with archive (Exim 4.71) id 1hY6fY-00075f-Vv for mharc-grub-devel@gnu.org; Tue, 04 Jun 2019 06:27:53 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hY6fQ-0006zr-MY for grub-devel@gnu.org; Tue, 04 Jun 2019 06:27:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hY6fO-0005KS-QF for grub-devel@gnu.org; Tue, 04 Jun 2019 06:27:44 -0400 Received: from mail.csgraf.de ([188.138.100.120]:35792 helo=zulu616.server4you.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hY6fM-0005J2-Qs for grub-devel@gnu.org; Tue, 04 Jun 2019 06:27:40 -0400 Received: from server.alex.local (x5f732cb8.dyn.telefonica.de [95.115.44.184]) by csgraf.de (Postfix) with ESMTPSA id D40073900553; Tue, 4 Jun 2019 12:27:36 +0200 (CEST) From: Alexander Graf To: grub-devel@gnu.org Cc: Daniel Kiper , Leif Lindholm Subject: [PATCH v3 06/10] travis: Add smoke tests for arm and aarch64 Date: Tue, 4 Jun 2019 12:27:30 +0200 Message-Id: <20190604102734.1525-7-agraf@csgraf.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190604102734.1525-1-agraf@csgraf.de> References: <20190604102734.1525-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: Tue, 04 Jun 2019 10:27:45 -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 Reviewed-by: Daniel Kiper --- v2 -> v3: - Use 19.03 release firmware files --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7945efa14..d6b827960 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://releases.linaro.org/reference-platform/enterprise/firmware/open-source/19.03/release/qemu-aarch64/QEMU_EFI.fd -O QEMU_EFI.aarch64.fd; fi + - if [[ "$GRUB_TARGETS" == *"arm-efi"* ]]; then wget http://releases.linaro.org/reference-platform/enterprise/firmware/open-source/19.03/release/qemu-arm/QEMU_EFI.fd -O QEMU_EFI.arm.fd; fi script: # Comments must be outside the command strings below, or the Travis parser @@ -71,7 +75,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