]> git.proxmox.com Git - mirror_edk2.git/commit
UnitTestFrameworkPkg/Library: Add library instances
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 22 Jan 2020 18:07:17 +0000 (10:07 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Feb 2020 19:18:53 +0000 (19:18 +0000)
commit0eb522987fcd8bec9b7031ae428736936b2bc288
treeea62feb02fa795b21d9b0b5a0ae925bb2f893839
parent0f7fb5c5e5ad4b1654d67c65c77999bd9e5a5af5
UnitTestFrameworkPkg/Library: Add library instances

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 files changed:
.gitmodules
UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/CmockaLib/CmockaLib.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/CmockaLib/cmocka [new submodule]
UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/Posix/DebugLibPosix/DebugLibPosix.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/Posix/MemoryAllocationLibPosix/MemoryAllocationLibPosix.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibNull/UnitTestBootLibNull.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibUsbClass.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibUsbClass.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestBootLibUsbClass/UnitTestBootLibUsbClass.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/Assert.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/Log.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/RunTests.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLib.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestLib/UnitTestLibCmocka.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibNull/UnitTestPersistenceLibNull.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestPersistenceLibSimpleFileSystem/UnitTestPersistenceLibSimpleFileSystem.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLib.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibConOut.uni [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.c [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.inf [new file with mode: 0644]
UnitTestFrameworkPkg/Library/UnitTestResultReportLib/UnitTestResultReportLibDebugLib.uni [new file with mode: 0644]