diff options
| author | Simon Glass <[email protected]> | 2022-04-24 23:31:24 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-04-25 10:00:04 -0400 |
| commit | fb1451bec2a54046eeb541d77ba0e5eb55302d46 (patch) | |
| tree | 229fbd649f4d60e90c77567a2b6d94d487c57c8b /test/boot/bootstd_common.h | |
| parent | 0ccb0ac5d8fa8e03ba57b364133b7f033c2d52c1 (diff) | |
bootstd: Add tests for bootstd including all uclasses
Add a set of combined tests for the bootdev, bootflow and bootmeth
commands, along with associated functionality.
Expand the sandbox console-recording limit so that these can work.
These tests rely on a filesystem script which is not yet added to the
Python tests. It is included here as a shell script.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'test/boot/bootstd_common.h')
| -rw-r--r-- | test/boot/bootstd_common.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/test/boot/bootstd_common.h b/test/boot/bootstd_common.h new file mode 100644 index 00000000000..676ef0a57f9 --- /dev/null +++ b/test/boot/bootstd_common.h @@ -0,0 +1,27 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Common header file for bootdev, bootflow, bootmeth tests + * + * Copyright 2021 Google LLC + * Written by Simon Glass <[email protected]> + */ + +#ifndef __bootstd_common_h +#define __bootstd_common_h + +/* Declare a new bootdev test */ +#define BOOTSTD_TEST(_name, _flags) \ + UNIT_TEST(_name, _flags, bootstd_test) + +struct unit_test_state; + +/** + * bootstd_test_drop_bootdev_order() - Remove the existing boot order + * + * Drop the boot order so that all bootdevs are used in their alias order + * + * @uts: Unit test state to use for ut_assert...() functions + */ +int bootstd_test_drop_bootdev_order(struct unit_test_state *uts); + +#endif |
