Skip to content

Commit

Permalink
Use prebuilt QEMU for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gsingh93 committed Apr 8, 2024
1 parent 4ac0691 commit c12c213
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,18 @@ jobs:
- run: ls -lR ${{ env.LINUX_OUT }}/modules_install

- name: Install testing dependencies
run: sudo apt update && sudo apt install -y qemu-system-x86 qemu-system-arm
- name: Download QEMU prebuilt
shell: bash
run: |
set -x
if [ $ARCH == x86_64 ]; then
wget --no-verbose https://github.com/gsingh93/linux-exploit-dev-env/releases/download/qemu-x86_64-8.2.2-54c11d1b152b5181a0e4ff0619ddc86f99dd220d/qemu-system-x86_64
echo "QEMU_BIN=$PWD/qemu-system-x86_64" >> $GITHUB_ENV
elif [ $ARCH == arm64 ]; then
wget --no-verbose https://github.com/gsingh93/linux-exploit-dev-env/releases/download/qemu-aarch64-8.2.2-54c11d1b152b5181a0e4ff0619ddc86f99dd220d/qemu-system-aarch64
echo "QEMU_BIN=$PWD/qemu-system-aarch64" >> $GITHUB_ENV
fi
- name: Test art-kt
shell: bash
Expand All @@ -107,7 +117,7 @@ jobs:
# `modprobe` won't work without `modules.dep`
echo "${ART_KT_DIR}/art-kernel-toolkit.ko:" > $MODULES_DIR/modules.dep
# LINUX_OUT, ROOTFS, and QEMU_KERNEL_IMAGE are set in the environment
# LINUX_OUT, ROOTFS, QEMU_BIN, and QEMU_KERNEL_IMAGE are set in the environment
make art-kt_test | tee test.log
grep "All tests passed" test.log || exit 1

0 comments on commit c12c213

Please sign in to comment.