Simon Glass | 507ab96 | 2021-12-04 08:56:31 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Test for EFI_MEDIA uclass |
| 4 | * |
| 5 | * Copyright 2021 Google LLC |
| 6 | */ |
| 7 | |
Simon Glass | 507ab96 | 2021-12-04 08:56:31 -0700 | [diff] [blame] | 8 | #include <dm.h> |
| 9 | #include <asm/test.h> |
| 10 | #include <dm/test.h> |
| 11 | #include <test/test.h> |
| 12 | #include <test/ut.h> |
| 13 | |
| 14 | /* Test that we can use the EFI_MEDIA uclass */ |
| 15 | static int dm_test_efi_media(struct unit_test_state *uts) |
| 16 | { |
| 17 | struct udevice *dev; |
| 18 | |
| 19 | ut_assertok(uclass_first_device_err(UCLASS_EFI_MEDIA, &dev)); |
| 20 | |
| 21 | return 0; |
| 22 | } |
Simon Glass | 1a92f83 | 2024-08-22 07:57:48 -0600 | [diff] [blame^] | 23 | DM_TEST(dm_test_efi_media, UTF_SCAN_PDATA | UTF_SCAN_FDT); |