summaryrefslogtreecommitdiff
path: root/test/image/spl_load_os.c
blob: ba9d7979a09bba1739a75b108673183a9a1cef12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright 2021 Google LLC
 * Written by Simon Glass <[email protected]>
 */

#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);