mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
https://bugzilla.tianocore.org/show_bug.cgi?id=2505 Add the following library instances that are used to build unit tests for host and target environments. * CmockaLib with cmocka submodule to: https://git.cryptomilk.org/projects/cmocka.git * DebugLibPosix - Instance of DebugLib based on POSIX APIs (e.g. printf). * MemoryAllocationLibPosix - Instance of MemoryAllocationLib based on POSIX APIs (e.g. malloc/free). * UnitTestBootLibNull - Null instance of the UnitTestBootLib * UnitTestBootLibUsbClass - UnitTestBootLib instances that supports setting boot next to a USB device. * UnitTestLib - UnitTestLib instance that is designed to work with PEI, DXE, SMM, and UEFI Shell target environments. * UnitTestLibCmocka - UintTestLib instance that uses cmocka APIs and can only be use in a host environment. * UnitTestPersistenceLibNull - Null instance of the UnitTestPersistenceLib * UnitTestPersistenceLibSimpleFileSystem - UnitTestPersistenceLib instance that can safe the unit test framework state to a media device that supports the UEFI Simple File System Protocol. * UnitTestResultReportLibConOut - UnitTestResultReportLib instance that sends report results to the UEFI standard output console. * UnitTestResultReportLibDebugLib - UnitTestResultReportLib instance that sends report results to a DebugLib using DEBUG() macros. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Bret Barkelew <Bret.Barkelew@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Bret Barkelew <Bret.Barkelew@microsoft.com>
39 lines
914 B
INI
39 lines
914 B
INI
## @file
|
|
# Library to support Unit Testing from host environments using Cmocka services.
|
|
#
|
|
# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010017
|
|
BASE_NAME = UnitTestLibCmocka
|
|
MODULE_UNI_FILE = UnitTestLibCmocka.uni
|
|
FILE_GUID = C800595F-45A3-45A1-8B50-28F01C2A5A4F
|
|
VERSION_STRING = 1.0
|
|
MODULE_TYPE = UEFI_DRIVER
|
|
LIBRARY_CLASS = UnitTestLib|HOST_APPLICATION
|
|
|
|
[Sources]
|
|
UnitTestLib.c
|
|
RunTestsCmocka.c
|
|
AssertCmocka.c
|
|
Log.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
BaseMemoryLib
|
|
PcdLib
|
|
DebugLib
|
|
MemoryAllocationLib
|
|
UnitTestPersistenceLib
|
|
UnitTestResultReportLib
|
|
CmockaLib
|
|
|
|
[Pcd]
|
|
gUnitTestFrameworkPkgTokenSpaceGuid.PcdUnitTestLogLevel ## CONSUMES
|