summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-17 15:05:05 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-17 15:50:38 +0000
commit121330d625fd7f9d537c72c40bf50a61c7a0ac51 (patch)
treed19a8cd028e38ffbae12401ca1529324240e06cd
parentbe34bbec6ceabeb6d89acd047d94388dbe5224b5 (diff)
downloadalpine-conf-121330d625fd7f9d537c72c40bf50a61c7a0ac51.zip
update-kernel: add test to verify that firmware is included
-rwxr-xr-xtests/update_kernel_test14
1 files changed, 13 insertions, 1 deletions
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/
+}