Skip to content

Commit

Permalink
MdePkg/Test: Add DevicePathLib host test module
Browse files Browse the repository at this point in the history
This commit adds host-based unit tests for device path lib.

Cc: Michael D Kinney <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Zhiguang Liu <[email protected]>
Signed-off-by: Mateusz Albecki <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
  • Loading branch information
malbecki authored and mergify[bot] committed Oct 19, 2023
1 parent 96ed60d commit 0355e55
Show file tree
Hide file tree
Showing 6 changed files with 1,073 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MdePkg/MdePkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
"Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLib.c",
"Library/BaseFdtLib",
"Library/MipiSysTLib/mipi_syst.h",
"Include/Register/Amd/SmramSaveStateMap.h"
"Include/Register/Amd/SmramSaveStateMap.h",
"Test/UnitTest/Library/DevicePathLib/TestDevicePathLib.c",
"Test/UnitTest/Library/DevicePathLib/TestDevicePathLib.h",
"Test/UnitTest/Library/DevicePathLib/TestDevicePathStringConversions.c"
]
},
## options defined ci/Plugin/CompilerPlugin
Expand Down
2 changes: 2 additions & 0 deletions MdePkg/Test/MdePkgHostTest.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

[LibraryClasses]
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibBase.inf

[Components]
#
Expand All @@ -29,6 +30,7 @@
MdePkg/Test/UnitTest/Library/BaseSafeIntLib/TestBaseSafeIntLibHost.inf
MdePkg/Test/UnitTest/Library/BaseLib/BaseLibUnitTestsHost.inf
MdePkg/Test/GoogleTest/Library/BaseSafeIntLib/GoogleTestBaseSafeIntLib.inf
MdePkg/Test/UnitTest/Library/DevicePathLib/TestDevicePathLibHost.inf

#
# Build HOST_APPLICATION Libraries
Expand Down
Loading

0 comments on commit 0355e55

Please sign in to comment.