diff options
author | Wenyi Xie <xiewenyi2@huawei.com> | 2021-08-11 14:35:39 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-08-12 08:34:04 +0000 |
commit | ac826886c98524e918753419c039d8b44198943f (patch) | |
tree | 0b8d45a1319d19ce046c8d3a55db72f26a1bbcbb /MdeModulePkg/Test | |
parent | a776bbabd9e8f370feb089cdc016324b1d6a37c7 (diff) | |
download | edk2-ac826886c98524e918753419c039d8b44198943f.tar.gz edk2-ac826886c98524e918753419c039d8b44198943f.tar.bz2 edk2-ac826886c98524e918753419c039d8b44198943f.zip |
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 <jian.j.wang@intel.com>
Cc: Hao A Wu <hao.a.wu@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Test')
-rw-r--r-- | MdeModulePkg/Test/MdeModulePkgHostTest.dsc | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ <PcdsFixedAtBuild>
gEfiMdeModulePkgTokenSpaceGuid.PcdAllowVariablePolicyEnforcementDisable|TRUE
}
+
+ MdeModulePkg/Library/UefiSortLib/UnitTest/UefiSortLibUnitTest.inf {
+ <LibraryClasses>
+ UefiSortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
+ DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
+ }
|