The code changes add unit tests based on current UnitTestFramework. EdkiiPeiMpServices2PpiPeiUnitTest PEI module is used to test EdkiiPeiMpServices2Ppi and EfiMpServiceProtocolDxeUnitTest DXE driver is used to test EfiMpServiceProtocol. Signed-off-by: Jason Lou <yun.lou@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1018 B
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1018 B
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| # PEIM that unit tests the EdkiiPeiMpServices2Ppi
 | |
| #
 | |
| # Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION     = 0x00010005
 | |
|   BASE_NAME       = EdkiiPeiMpServices2PpiPeiUnitTest
 | |
|   FILE_GUID       = A4914810-4D1E-445E-BD6F-F6821B852B5D
 | |
|   MODULE_TYPE     = PEIM
 | |
|   VERSION_STRING  = 1.0
 | |
|   ENTRY_POINT     = PeiEntryPoint
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   EfiMpServicesUnitTestCommom.c
 | |
|   EfiMpServicesUnitTestCommom.h
 | |
|   EdkiiPeiMpServices2PpiUnitTest.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   UefiCpuPkg/UefiCpuPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseLib
 | |
|   DebugLib
 | |
|   BaseMemoryLib
 | |
|   MemoryAllocationLib
 | |
|   PeimEntryPoint
 | |
|   PeiServicesLib
 | |
|   UnitTestPersistenceLib
 | |
|   UnitTestLib
 | |
| 
 | |
| [Ppis]
 | |
|   gEdkiiPeiMpServices2PpiGuid           ## CONSUMES
 | |
| 
 | |
| [Depex]
 | |
|   gEdkiiPeiMpServices2PpiGuid
 |