From ac826886c98524e918753419c039d8b44198943f Mon Sep 17 00:00:00 2001 From: Wenyi Xie Date: Wed, 11 Aug 2021 14:35:39 +0800 Subject: MdeModulePkg/UefiSortLib:Add UefiSortLib unit test Adding two unit test case for UefiSortLib. One is a test on sorting an array of UINT32 by using PerformQuickSort, another is a test on comparing the same buffer by using StringCompare. Add 'main' function name to ECC exception list to avoid ECC error. Cc: Jian J Wang Cc: Hao A Wu Signed-off-by: Wenyi Xie Reviewed-by: Hao A Wu --- MdeModulePkg/Test/MdeModulePkgHostTest.dsc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'MdeModulePkg/Test') diff --git a/MdeModulePkg/Test/MdeModulePkgHostTest.dsc b/MdeModulePkg/Test/MdeModulePkgHostTest.dsc index 4da4692c84..c9ec835df6 100644 --- a/MdeModulePkg/Test/MdeModulePkgHostTest.dsc +++ b/MdeModulePkg/Test/MdeModulePkgHostTest.dsc @@ -41,3 +41,9 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdAllowVariablePolicyEnforcementDisable|TRUE } + + MdeModulePkg/Library/UefiSortLib/UnitTest/UefiSortLibUnitTest.inf { + + UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf + DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf + } -- cgit v1.2.3