Simon Glass | b255efc | 2022-04-24 23:31:24 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Common header file for bootdev, bootflow, bootmeth tests |
| 4 | * |
| 5 | * Copyright 2021 Google LLC |
| 6 | * Written by Simon Glass <sjg@chromium.org> |
| 7 | */ |
| 8 | |
| 9 | #ifndef __bootstd_common_h |
| 10 | #define __bootstd_common_h |
| 11 | |
| 12 | /* Declare a new bootdev test */ |
| 13 | #define BOOTSTD_TEST(_name, _flags) \ |
| 14 | UNIT_TEST(_name, _flags, bootstd_test) |
| 15 | |
| 16 | struct unit_test_state; |
| 17 | |
| 18 | /** |
| 19 | * bootstd_test_drop_bootdev_order() - Remove the existing boot order |
| 20 | * |
| 21 | * Drop the boot order so that all bootdevs are used in their alias order |
| 22 | * |
| 23 | * @uts: Unit test state to use for ut_assert...() functions |
| 24 | */ |
| 25 | int bootstd_test_drop_bootdev_order(struct unit_test_state *uts); |
| 26 | |
| 27 | #endif |