Files
u-boot-krane/test/image/spl_load_os.c
T
Francesco VallaandTom Rini e41a770f38 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 <francesco@valla.it>
2026-06-17 14:16:41 -06:00

35 lines
666 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2021 Google LLC
* Written by Simon Glass <sjg@chromium.org>
*/
#include <image.h>
#include <os.h>
#include <spl.h>
#include <test/spl.h>
#include <test/ut.h>
static int spl_test_load(struct unit_test_state *uts)
{
struct spl_image_info image;
char fname[256];
ut_assertok(sandbox_spl_load_fit(fname, sizeof(fname), &image));
return 0;
}
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);