summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFrancesco Valla <[email protected]>2026-06-04 22:41:40 +0200
committerTom Rini <[email protected]>2026-06-17 14:16:41 -0600
commite41a770f3800f9c0d2f74fedc04eea09a29a3776 (patch)
tree08d3b3586c1be8f9bbabbc06e025b62d1b2998e9 /test
parent99b9223948a4361daff09bc973c2d283e48d8bd6 (diff)
test: spl: add unit test for the "full" FIT loader
Following what is already done for the "simple" FIT loader, add a unit test for the "full" loader. Signed-off-by: Francesco Valla <[email protected]>
Diffstat (limited to 'test')
-rw-r--r--test/image/spl_load_os.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/image/spl_load_os.c b/test/image/spl_load_os.c
index d17cf116a0e..ba9d7979a09 100644
--- a/test/image/spl_load_os.c
+++ b/test/image/spl_load_os.c
@@ -21,3 +21,14 @@ static int spl_test_load(struct unit_test_state *uts)
}
SPL_TEST(spl_test_load, 0);
+static int spl_test_load_fit_full(struct unit_test_state *uts)
+{
+ struct spl_image_info image;
+ char fname[256];
+
+ ut_assertok(sandbox_spl_load_fit_full(fname, sizeof(fname), &image));
+
+ return 0;
+}
+SPL_TEST(spl_test_load_fit_full, 0);
+