Files
u-boot/test/image/spl_load_os.c
Simon Glass 615d84b6ce test: Move some SPL-loading test-code into sandbox common
This code is useful for loading an image in sandbox_spl so move it into
a place where it can be called as needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-08-09 16:03:19 -06:00

23 lines
428 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);