b27b897369
MdeModulePkg: HOST_APPLICATION IA32/X64 only
...
Update MdeModulePkg host-based unit test INF files to only list
VALID_ARCHITECTURES of IA32 and X64 to align with all other
host-based unit test INF files. The UnitTestFrameworkPkg only
provides build support of host-based unit tests to OS applications
for IA32 and X64.
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2023-04-10 05:59:02 +00:00
1a24843ecb
MdeModulePkg/Library/UefiSortLib: Add GoogleTestLib example
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4389
Cc: Jian J Wang <jian.j.wang@intel.com >
Cc: Liming Gao <gaoliming@byosoft.com.cn >
Signed-off-by: Chris Johnson <chris.n.johnson@intel.com >
Reviewed-by: Oliver Smith-Denny <osde@linux.microsoft.com >
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com >
2023-04-10 05:59:02 +00:00
1436aea4d5
MdeModulePkg: Apply uncrustify changes
...
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737
Apply uncrustify changes to .c/.h files in the MdeModulePkg package
Cc: Andrew Fish <afish@apple.com >
Cc: Leif Lindholm <leif@nuviainc.com >
Cc: Michael D Kinney <michael.d.kinney@intel.com >
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com >
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn >
2021-12-07 17:24:28 +00:00
184ee9b1de
MdeModulePkg: Add DxeResetSystemLib unit test
...
https://bugzilla.tianocore.org/show_bug.cgi?id=2505
* Add unit test of DxeResetSystemLib library
instance that uses cmocka interfaces to mock the
UEFI Runtime Services Table and its ResetSystem()
service. When a unit test uses the cmocka
interfaces, the unit test does not support being
run from target environments.
cmocka APIs: https://api.cmocka.org/index.html
This example puts the unit test in a UnitTest
directory below the library INF file and this location
means the unit test is only designed to work this
this one library instance.
* Add Test/MdeModulePkgHostTest.dsc to build host
based unit tests
Cc: Sean Brogan <sean.brogan@microsoft.com >
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com >
Cc: Liming Gao <liming.gao@intel.com >
Cc: Hao A Wu <hao.a.wu@intel.com >
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Hao A Wu <hao.a.wu@intel.com >
Reviewed-by: Bret Barkelew <Bret.Barkelew@microsoft.com >
2020-02-07 19:18:53 +00:00