blob: e343a0e9c85de0473ba3c9c3f4aeecb8a458d7d3 [file] [log] [blame]
Simon Glass42b7f422021-12-04 08:56:31 -07001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Test for EFI_MEDIA uclass
4 *
5 * Copyright 2021 Google LLC
6 */
7
8#include <common.h>
9#include <dm.h>
10#include <asm/test.h>
11#include <dm/test.h>
12#include <test/test.h>
13#include <test/ut.h>
14
15/* Test that we can use the EFI_MEDIA uclass */
16static int dm_test_efi_media(struct unit_test_state *uts)
17{
18 struct udevice *dev;
19
20 ut_assertok(uclass_first_device_err(UCLASS_EFI_MEDIA, &dev));
21
22 return 0;
23}
24DM_TEST(dm_test_efi_media, UT_TESTF_SCAN_PDATA | UT_TESTF_SCAN_FDT);