File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed
Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -14,9 +14,13 @@ if ! command -v gzip >/dev/null 2>&1; then
1414 exit 1
1515fi
1616TEST_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
2024IMG=test_uefi.img
2125rm -f " $IMG "
2226mformat -i " $IMG " -C -F -T 131072 :: 2> /dev/null
You can’t perform that action at this time.
0 commit comments