https://bugzilla.tianocore.org/show_bug.cgi?id=2505 Add public interfaces for use by unit test implementations. * Include path to cmocka library interfaces. * PcdUnitTestLogLevel to set the unit test logging message level to filter log messages. Add private interfaces that are used by UnitTestLib implementations. * [Private] UnitTestBootLib - Set boot next to continue unit tests across a reboot. * [Private] UnitTestPersistenceLib - Save unit test framework state to a persistent storage device. * [Private] UnitTestResultLib - Output unit test results to a console device. * [Private] UnitTestFrameworkTypes.h - Internal structures used by UnitTestLib implementations to keep track if unit test frameworks, unit test suites, and unit tests along with the serialized storage format to save a unit test framework state to persistent storage. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Bret Barkelew <Bret.Barkelew@microsoft.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   Provides a library function that can be customized to set the platform to boot
 | |
|   from USB on the next boot.  This allows the test framework to reboot back to
 | |
|   USB.  Since boot managers are not all the same creating a lib to support
 | |
|   platform customization will make porting to new code base/platform easier.
 | |
| 
 | |
|   Copyright (c) Microsoft Corporation.<BR>
 | |
|   Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef __UNIT_TEST_BOOT_LIB_H__
 | |
| #define __UNIT_TEST_BOOT_LIB_H__
 | |
| 
 | |
| /**
 | |
|   Set the boot manager to boot from a specific device on the next boot. This
 | |
|   should be set only for the next boot and shouldn't require any manual clean up
 | |
| 
 | |
|   @retval EFI_SUCCESS      Boot device for next boot was set.
 | |
|   @retval EFI_UNSUPPORTED  Setting the boot device for the next boot is not
 | |
|                            supportted.
 | |
|   @retval Other            Boot device for next boot can not be set.
 | |
| **/
 | |
| EFI_STATUS
 | |
| EFIAPI
 | |
| SetBootNextDevice (
 | |
|   VOID
 | |
|   );
 | |
| 
 | |
| #endif
 |