Branch: refs/heads/master Home: https://github.com/tianocore/edk2 Commit: 0c6d851d258bac2df1e21e2670e8baca1bb37771 https://github.com/tianocore/edk2/commit/0c6d851d258bac2df1e21e2670e8baca1bb37771 Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023)
Changed paths: M .gitmodules M ReadMe.rst A UnitTestFrameworkPkg/Include/Library/SubhookLib.h A UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.inf A UnitTestFrameworkPkg/Library/SubhookLib/SubhookLib.uni A UnitTestFrameworkPkg/Library/SubhookLib/subhook M UnitTestFrameworkPkg/Test/UnitTestFrameworkPkgHostTest.dsc M UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec M UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc Log Message: ----------- UnitTestFrameworkPkg: Add subhook submodule required for gmock REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Add subhook submodule that is required to hook internal functions when using gmock. https://github.com/Zeex/subhook Add SubhookLib library class and SubhookLib library instance. Include the SUBHOOK_STATIC define in the SubhookLib INF file so it builds as a static library. Also include the SUBHOOK_STATIC define in SubhookLib.h so all modules using SubhookLib properly link SubhookLib as a static library. Cc: Andrew Fish <af...@apple.com> Cc: Leif Lindholm <quic_llind...@quicinc.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Michael Kubacki <mikub...@linux.microsoft.com> Cc: Sean Brogan <sean.bro...@microsoft.com> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Reviewed-by: Leif Lindholm <quic_llind...@quicinc.com> Reviewed-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: caa389625faa7564d7c6e2105ae7947de2a23b07 https://github.com/tianocore/edk2/commit/caa389625faa7564d7c6e2105ae7947de2a23b07 Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M .pytool/CISettings.py Log Message: ----------- .pytool/CISettings.py: Add subhook submodule REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Add submodule for https://github.com/Zeex/subhook This submodule is required to hook internal functions when using gmock. Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Kubacki <mikub...@linux.microsoft.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Reviewed-by: Leif Lindholm <quic_llind...@quicinc.com> Reviewed-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: d0252b8fc1fe8b6489a4d0a25c29a5d3eaa95228 https://github.com/tianocore/edk2/commit/d0252b8fc1fe8b6489a4d0a25c29a5d3eaa95228 Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: A UnitTestFrameworkPkg/Include/Library/FunctionMockLib.h M UnitTestFrameworkPkg/Include/Library/GoogleTestLib.h M UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf A UnitTestFrameworkPkg/Library/FunctionMockLib/FunctionMockLib.c A UnitTestFrameworkPkg/Library/FunctionMockLib/FunctionMockLib.inf A UnitTestFrameworkPkg/Library/FunctionMockLib/FunctionMockLib.uni M UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.inf M UnitTestFrameworkPkg/Library/GoogleTestLib/GoogleTestLib.uni M UnitTestFrameworkPkg/Test/UnitTestFrameworkPkgHostTest.dsc M UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml M UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec M UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc Log Message: ----------- UnitTestFrameworkPkg: Add gmock support to GoogleTestLib 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.bro...@microsoft.com> Cc: Michael Kubacki <mikub...@linux.microsoft.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Reviewed-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: e4af282e9f60940105023d6988aa1688a107494e https://github.com/tianocore/edk2/commit/e4af282e9f60940105023d6988aa1688a107494e Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M UnitTestFrameworkPkg/ReadMe.md Log Message: ----------- UnitTestFrameworkPkg/ReadMe.md: Add gmock documentation REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Cc: Sean Brogan <sean.bro...@microsoft.com> Cc: Michael Kubacki <mikub...@linux.microsoft.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Reviewed-by: Michael Kubacki <michael.kuba...@microsoft.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: 09458c2b0bc531478337ceb37cb30a4b5d550c13 https://github.com/tianocore/edk2/commit/09458c2b0bc531478337ceb37cb30a4b5d550c13 Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M MdePkg/MdePkg.dec M MdePkg/Test/MdePkgHostTest.dsc A MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiLib.h A MdePkg/Test/Mock/Include/GoogleTest/Library/MockUefiRuntimeServicesTableLib.h A MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.cpp A MdePkg/Test/Mock/Library/GoogleTest/MockUefiLib/MockUefiLib.inf A MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/MockUefiRuntimeServicesTableLib.cpp A MdePkg/Test/Mock/Library/GoogleTest/MockUefiRuntimeServicesTableLib/MockUefiRuntimeServicesTableLib.inf Log Message: ----------- MdePkg: Add gmock examples REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Acked-by: Liming Gao <gaolim...@byosoft.com.cn> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: 1a24843ecb84d8258a613568122fa33fb872ecbc https://github.com/tianocore/edk2/commit/1a24843ecb84d8258a613568122fa33fb872ecbc Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf A MdeModulePkg/Library/UefiSortLib/GoogleTest/UefiSortLibGoogleTest.cpp A MdeModulePkg/Library/UefiSortLib/GoogleTest/UefiSortLibGoogleTest.inf M MdeModulePkg/Test/MdeModulePkgHostTest.dsc Log Message: ----------- MdeModulePkg/Library/UefiSortLib: Add GoogleTestLib example REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: c28c16e7c447f3f684ab14644dfb201be8c37aa3 https://github.com/tianocore/edk2/commit/c28c16e7c447f3f684ab14644dfb201be8c37aa3 Author: Chris Johnson <chris.n.john...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: A SecurityPkg/Library/SecureBootVariableLib/GoogleTest/SecureBootVariableLibGoogleTest.cpp A SecurityPkg/Library/SecureBootVariableLib/GoogleTest/SecureBootVariableLibGoogleTest.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockPlatformPKProtectionLib.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiLib.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiRuntimeServicesTableLib.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/SecureBootVariableLibUnitTest.c M SecurityPkg/SecurityPkg.dec A SecurityPkg/Test/Mock/Include/GoogleTest/Library/MockPlatformPKProtectionLib.h A SecurityPkg/Test/Mock/Library/GoogleTest/MockPlatformPKProtectionLib/MockPlatformPKProtectionLib.cpp A SecurityPkg/Test/Mock/Library/GoogleTest/MockPlatformPKProtectionLib/MockPlatformPKProtectionLib.inf M SecurityPkg/Test/SecurityPkgHostTest.dsc Log Message: ----------- SecurityPkg: Add gmock example REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389 Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Signed-off-by: Chris Johnson <chris.n.john...@intel.com> Acked-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael D Kinney <michael.d.kin...@intel.com> Commit: 0657e7411623bdc3edba7999f660978ff78d098c https://github.com/tianocore/edk2/commit/0657e7411623bdc3edba7999f660978ff78d098c Author: Michael D Kinney <michael.d.kin...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M SecurityPkg/Library/SecureBootVariableLib/UnitTest/SecureBootVariableLibUnitTest.c Log Message: ----------- SecurityPkg/Library/SecureBootVariableLib: Fix VS20xx 4122 errors The unit test code for the SecureBootVariableLib is initializing local variable structures in their declaration from other local variables that are also initialized in their declaration. ANSI C does not allow this and error 4122 is generated on VS20xx compilers. The test cases are updated to initialize the local structure fields in C statements instead of their local variable declaration. Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Commit: 358e23c1be9687f101bd753661735d1f01de19a4 https://github.com/tianocore/edk2/commit/358e23c1be9687f101bd753661735d1f01de19a4 Author: Michael D Kinney <michael.d.kin...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockPlatformPKProtectionLib.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiLib.inf M SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiRuntimeServicesTableLib.inf Log Message: ----------- SecurityPkg/Library/SecureBootVariableLib: HOST_APPLICATION IA32/X64 only Update SecureBootVariableLib host-based unit test INF file to only list VALID_ARCHITECTURES of IA32 and X64 to align with all other host-based unit test INF files. The UnitTestFrameworkPkg only provides build support of host-based unit tests to OS applications for IA32 and X64. Cc: Jiewen Yao <jiewen....@intel.com> Cc: Jian J Wang <jian.j.w...@intel.com> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Jiewen Yao <jiewen....@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Commit: eb20c21fcc12f1a2565259211a199ae4eb5b0356 https://github.com/tianocore/edk2/commit/eb20c21fcc12f1a2565259211a199ae4eb5b0356 Author: Michael D Kinney <michael.d.kin...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M MdePkg/Library/BaseLib/UnitTestHostBaseLib.inf Log Message: ----------- MdePkg/Library/BaseLib: HOST_APPLICATION IA32/X64 only Update BaseLib host-based unit test INF file to only list VALID_ARCHITECTURES of IA32 and X64 to align with all other host-based unit test INF files. The UnitTestFrameworkPkg only provides build support of host-based unit tests to OS applications for IA32 and X64. Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Commit: b27b897369f3780021b044573ebdc29b2c657325 https://github.com/tianocore/edk2/commit/b27b897369f3780021b044573ebdc29b2c657325 Author: Michael D Kinney <michael.d.kin...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M MdeModulePkg/Library/DxeResetSystemLib/UnitTest/MockUefiRuntimeServicesTableLib.inf M MdeModulePkg/Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/VariableLockRequestToLockUnitTest.inf Log Message: ----------- MdeModulePkg: HOST_APPLICATION IA32/X64 only Update MdeModulePkg host-based unit test INF files to only list VALID_ARCHITECTURES of IA32 and X64 to align with all other host-based unit test INF files. The UnitTestFrameworkPkg only provides build support of host-based unit tests to OS applications for IA32 and X64. Cc: Jian J Wang <jian.j.w...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn> Commit: cf4af503fb61e7a942e05e61627364cad48c5781 https://github.com/tianocore/edk2/commit/cf4af503fb61e7a942e05e61627364cad48c5781 Author: Michael D Kinney <michael.d.kin...@intel.com> Date: 2023-04-10 (Mon, 10 Apr 2023) Changed paths: M PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBufferLibUnitTestHost.inf M PrmPkg/Library/DxePrmModuleDiscoveryLib/UnitTest/DxePrmModuleDiscoveryLibUnitTestHost.inf Log Message: ----------- PrmPkg/Library: HOST_APPLICATION IA32/X64 only Update PrmPkg host-based unit test INF files to only list VALID_ARCHITECTURES of IA32 and X64 to align with all other host-based unit test INF files. The UnitTestFrameworkPkg only provides build support of host-based unit tests to OS applications for IA32 and X64. Cc: Michael Kubacki <mikub...@linux.microsoft.com> Cc: Nate DeSimone <nathaniel.l.desim...@intel.com> Signed-off-by: Michael D Kinney <michael.d.kin...@intel.com> Reviewed-by: Oliver Smith-Denny <o...@linux.microsoft.com> Reviewed-by: Michael Kubacki <mikub...@linux.microsoft.com> Compare: https://github.com/tianocore/edk2/compare/6405cd03048c...cf4af503fb61 _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits