summaryrefslogtreecommitdiff
path: root/tests/fake_apk_test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fake_apk_test')
-rwxr-xr-xtests/fake_apk_test24
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
+}
+