blob: 676ef0a57f91874655ef2dc76c1d43309e16da33 [file] [log] [blame]
Simon Glassb255efc2022-04-24 23:31:24 -06001/* 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
16struct 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 */
25int bootstd_test_drop_bootdev_order(struct unit_test_state *uts);
26
27#endif