REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 * Add gmock support to GoogleTestLib * Add FunctionMockLib library class and library instance * Add GoogleTest extension to GoogleTestLib.h for CHAR16 type * Add GoogleTest extension to GoogleTestLib.h for buffer types * HOST_APPLICATION only supports IA32/X64 Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Michael Kubacki <mikuback@linux.microsoft.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Chris Johnson <chris.n.johnson@intel.com> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ## @file
 | |
| # UnitTestFrameworkPkg DSC file used to build host-based unit tests.
 | |
| #
 | |
| # Copyright (c) Microsoft Corporation.<BR>
 | |
| # SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   PLATFORM_NAME           = UnitTestFrameworkPkgHostTest
 | |
|   PLATFORM_GUID           = C7F97D6D-54AC-45A9-8197-CC99B20CC7EC
 | |
|   PLATFORM_VERSION        = 0.1
 | |
|   DSC_SPECIFICATION       = 0x00010005
 | |
|   OUTPUT_DIRECTORY        = Build/UnitTestFrameworkPkg/HostTest
 | |
|   SUPPORTED_ARCHITECTURES = IA32|X64
 | |
|   BUILD_TARGETS           = NOOPT
 | |
|   SKUID_IDENTIFIER        = DEFAULT
 | |
| 
 | |
| !include UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
 | |
| 
 | |
| [PcdsPatchableInModule]
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
 | |
| 
 | |
| [Components]
 | |
|   #
 | |
|   # Build HOST_APPLICATIONs that test the SampleUnitTest
 | |
|   #
 | |
|   UnitTestFrameworkPkg/Test/UnitTest/Sample/SampleUnitTest/SampleUnitTestHost.inf
 | |
|   UnitTestFrameworkPkg/Test/GoogleTest/Sample/SampleGoogleTest/SampleGoogleTestHost.inf
 | |
| 
 | |
|   #
 | |
|   # Build HOST_APPLICATION Libraries
 | |
|   #
 | |
|   UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf
 | |
|   UnitTestFrameworkPkg/Library/FunctionMockLib/FunctionMockLib.inf
 | |
|   UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.inf
 | |
|   UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf
 | |
|   UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf
 | |
|   UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.inf
 | |
|   UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf
 |