Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2021 Google LLC |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
| 5 | */ |
| 6 | |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 7 | #include <image.h> |
| 8 | #include <os.h> |
| 9 | #include <spl.h> |
Sean Anderson | f65dcc0 | 2023-10-14 16:47:59 -0400 | [diff] [blame] | 10 | #include <test/spl.h> |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 11 | #include <test/ut.h> |
| 12 | |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 13 | static int spl_test_load(struct unit_test_state *uts) |
| 14 | { |
| 15 | struct spl_image_info image; |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 16 | char fname[256]; |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 17 | |
Simon Glass | 3661115 | 2024-08-07 16:47:21 -0600 | [diff] [blame] | 18 | ut_assertok(sandbox_spl_load_fit(fname, sizeof(fname), &image)); |
Sean Anderson | dcd91b1 | 2023-10-14 16:47:57 -0400 | [diff] [blame] | 19 | |
| 20 | return 0; |
| 21 | } |
| 22 | SPL_TEST(spl_test_load, 0); |
Simon Glass | e806686 | 2024-08-22 07:55:02 -0600 | [diff] [blame] | 23 | |