diff options
Diffstat (limited to 'tests/fake_apk_test')
-rwxr-xr-x | tests/fake_apk_test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/fake_apk_test b/tests/fake_apk_test new file mode 100755 index 0000000..84c80ec --- /dev/null +++ b/tests/fake_apk_test @@ -0,0 +1,24 @@ +#!/usr/bin/env atf-sh + +. $(atf_get_srcdir)/test_env.sh +init_tests \ + fake_apk_add + +fake_apk_add_body() { + init_env + atf_check -s exit:0 \ + -o match:"DEBUG: fake apk" \ + apk add linux-rpi + + test -f boot/vmlinuz-rpi || atf_fail "boot/vmlinuz-rpi was not created" + + atf_check -s exit:0 \ + -o match:"DEBUG: fake apk" \ + apk add linux-firmware + + atf_check \ + -o match:"lib/firmware" \ + -o match:"lib/modules" \ + find +} + |