From 121330d625fd7f9d537c72c40bf50a61c7a0ac51 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 17 Nov 2022 15:05:05 +0100 Subject: update-kernel: add test to verify that firmware is included --- tests/update_kernel_test | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tests/update_kernel_test') diff --git a/tests/update_kernel_test b/tests/update_kernel_test index 9effe33..99d55ba 100755 --- a/tests/update_kernel_test +++ b/tests/update_kernel_test @@ -5,7 +5,8 @@ init_tests \ update_kernel_usage \ update_kernel_builddir_and_flavor \ update_kernel_arch \ - update_kernel_flavor + update_kernel_flavor \ + update_kernel_firmware update_kernel_usage_body() { test_usage update-kernel @@ -34,3 +35,14 @@ update_kernel_flavor_body() { -e match:"Cannot specify flavor when updating the current kernel" \ update-kernel --flavor virt } + +update_kernel_firmware_body() { + atf_require_prog mksquashfs + init_env + mkdir out + MKSQUASHFS_OPTS="-info" atf_check -s exit:0 \ + -o match:"apk add.*linux-firmware" \ + -o match:"file .*brcmfmac.ko" \ + -o match:"file .*brcm/brcmfmac43752-sdio.bin" \ + update-kernel --verbose --flavor rpi out/ +} -- cgit v1.2.3