]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: SecureBootVariableLib: Added unit tests
authorkuqin <kuqin@microsoft.com>
Wed, 13 Apr 2022 20:30:14 +0000 (13:30 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jul 2022 01:07:00 +0000 (01:07 +0000)
commitdbc4e3675f507b2c6df4bd2a0f5bdba37ff0d54c
tree15f7eda89ff5533b2aef1dbf3da393d29f2ad5c1
parent5678ebb42b5137556b8d62dd8a3c5779d5a21a48
SecurityPkg: SecureBootVariableLib: Added unit tests

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3911

This change added unit test and enabled it from pipeline for the updated
SecureBootVariableLib.

The unit test covers all implemented interfaces and certain corner cases.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Min Xu <min.m.xu@intel.com>
Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
Acked-by: Michael Kubacki <michael.kubacki@microsoft.com>
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockPlatformPKProtectionLib.c [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockPlatformPKProtectionLib.inf [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiLib.c [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiLib.inf [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiRuntimeServicesTableLib.c [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/MockUefiRuntimeServicesTableLib.inf [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/SecureBootVariableLibUnitTest.c [new file with mode: 0644]
SecurityPkg/Library/SecureBootVariableLib/UnitTest/SecureBootVariableLibUnitTest.inf [new file with mode: 0644]
SecurityPkg/SecurityPkg.ci.yaml
SecurityPkg/Test/SecurityPkgHostTest.dsc [new file with mode: 0644]