Skip to content

Commit c1aeff1

Browse files
committed
ci, contrib: e2e tests.
1 parent e9a95e0 commit c1aeff1

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/qemu_test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: QEMU end-to-end tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
qemu_test:
7+
name: QEMU end-to-end (x86_64, BIOS) tests
8+
runs-on: ubuntu-latest
9+
container: archlinux:latest
10+
11+
steps:
12+
- name: Install dependencies
13+
run: pacman --noconfirm -Syu && pacman --needed --noconfirm -S base-devel git autoconf automake nasm curl mtools gzip llvm clang lld qemu-system-x86
14+
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Bootstrap and configure
19+
run: ./bootstrap && ./configure --enable-werror --enable-bios --enable-uefi-x86-64
20+
21+
- name: Run gzip QEMU test
22+
run: bash contrib/test_gzip_qemu.sh

contrib/test_gzip_qemu.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ if ! command -v gzip >/dev/null 2>&1; then
1414
exit 1
1515
fi
1616
TEST_CFLAGS="-DENABLE_QEMU_SHUTDOWN -DENABLE_GZIP_TEST"
17-
make limine-bios limine-uefi-x86-64 2>&1 | tail -1
18-
make edk2-ovmf 2>&1 | tail -1
19-
make -C test -f test.mk ARCH=x86 EXTRA_CFLAGS="$TEST_CFLAGS" test.elf 2>&1 | tail -1
17+
export CC_FOR_TARGET="${CC_FOR_TARGET:-clang}"
18+
export LD_FOR_TARGET="${LD_FOR_TARGET:-ld}"
19+
export GREP="${GREP:-grep}"
20+
make limine-bios limine-uefi-x86-64
21+
make edk2-ovmf
22+
make -C test -f test.mk clean
23+
make -C test -f test.mk ARCH=x86 EXTRA_CFLAGS="$TEST_CFLAGS" test.elf
2024
IMG=test_uefi.img
2125
rm -f "$IMG"
2226
mformat -i "$IMG" -C -F -T 131072 :: 2>/dev/null

0 commit comments

Comments
 (0)