blob: d17cf116a0e8923885dc6b45246f2b289fbee604 [file] [log] [blame]
Sean Andersondcd91b12023-10-14 16:47:57 -04001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright 2021 Google LLC
4 * Written by Simon Glass <sjg@chromium.org>
5 */
6
Sean Andersondcd91b12023-10-14 16:47:57 -04007#include <image.h>
8#include <os.h>
9#include <spl.h>
Sean Andersonf65dcc02023-10-14 16:47:59 -040010#include <test/spl.h>
Sean Andersondcd91b12023-10-14 16:47:57 -040011#include <test/ut.h>
12
Sean Andersondcd91b12023-10-14 16:47:57 -040013static int spl_test_load(struct unit_test_state *uts)
14{
15 struct spl_image_info image;
Sean Andersondcd91b12023-10-14 16:47:57 -040016 char fname[256];
Sean Andersondcd91b12023-10-14 16:47:57 -040017
Simon Glass36611152024-08-07 16:47:21 -060018 ut_assertok(sandbox_spl_load_fit(fname, sizeof(fname), &image));
Sean Andersondcd91b12023-10-14 16:47:57 -040019
20 return 0;
21}
22SPL_TEST(spl_test_load, 0);
Simon Glasse8066862024-08-22 07:55:02 -060023