MdePkg/Test: Add google tests for BaseLib
Add GoogleTestBaseLib, which contains gtest unit tests for BaseLib. For now, only add checksum tests for CRC32C and CRC16; these tests check for correctness on various inputs using precomputed hashes. Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
e2d4f75913
commit
3e133f730b
31
MdePkg/Test/GoogleTest/Library/BaseLib/GoogleTestBaseLib.inf
Normal file
31
MdePkg/Test/GoogleTest/Library/BaseLib/GoogleTestBaseLib.inf
Normal file
@@ -0,0 +1,31 @@
|
||||
## @file
|
||||
# Host OS based Application that unit tests BaseLib using Google Test
|
||||
#
|
||||
# Copyright (c) 2023, Pedro Falcato. All rights reserved.
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = GoogleTestBaseLib
|
||||
FILE_GUID = 34D8CBBA-2442-455F-8454-5B06B12A8B62
|
||||
MODULE_TYPE = HOST_APPLICATION
|
||||
VERSION_STRING = 1.0
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
TestCheckSum.cpp
|
||||
TestBaseLibMain.cpp
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
GoogleTestLib
|
||||
BaseLib
|
Reference in New Issue
Block a user