mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-11-03 18:01:41 +01:00 
			
		
		
		
	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 <sjg@chromium.org>
		
			
				
	
	
		
			28 lines
		
	
	
		
			671 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			671 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0+ */
 | 
						|
/*
 | 
						|
 * Common header file for bootdev, bootflow, bootmeth tests
 | 
						|
 *
 | 
						|
 * Copyright 2021 Google LLC
 | 
						|
 * Written by Simon Glass <sjg@chromium.org>
 | 
						|
 */
 | 
						|
 | 
						|
#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
 |