diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 9f39ba4..c08f688 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -25,11 +25,8 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - name: Build alpine image - run: sudo ./build-rootfs.sh alpine + - name: Install prerequisites + run: sudo apt install docker qemu-system - - name: Build ubuntu 21.04 image - run: sudo ./build-rootfs.sh ubuntu21.04 - - - name: Build al2 - run: sudo ./build-rootfs.sh amazonlinux2 \ No newline at end of file + - name: Build and test all images + run: sudo ./tests/test-all.sh \ No newline at end of file diff --git a/tests/qemu-test.sh b/tests/qemu-test.sh index cffba14..98bc00c 100755 --- a/tests/qemu-test.sh +++ b/tests/qemu-test.sh @@ -2,10 +2,11 @@ set -e TIMEOUT=60 +SCRIPT_DIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" echo "Testing $1" qemu-system-x86_64 \ - -kernel /home/debian/linux/linux-6.1.22/arch/x86/boot/bzImage \ + -kernel "$SCRIPT_DIR/../kernel/bzImage-6.1.22" \ -append "console=ttyS0 root=/dev/sda earlyprintk=serial" \ -nographic -m 512M \ -hda "$1" > serial.log 2>&1 &