diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2020-01-22 10:16:14 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-02-07 19:18:53 +0000 |
commit | 184ee9b1de4ecd1ea4aa479dc66840a14f50ccb2 (patch) | |
tree | d65906240000fe42636eaf140e14b78fdec01685 /MdeModulePkg/MdeModulePkg.ci.yaml | |
parent | e50c2bb38398553b184cee7d96d676a12b4c064b (diff) | |
download | edk2-184ee9b1de4ecd1ea4aa479dc66840a14f50ccb2.tar.gz edk2-184ee9b1de4ecd1ea4aa479dc66840a14f50ccb2.tar.bz2 edk2-184ee9b1de4ecd1ea4aa479dc66840a14f50ccb2.zip |
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>
Diffstat (limited to 'MdeModulePkg/MdeModulePkg.ci.yaml')
-rw-r--r-- | MdeModulePkg/MdeModulePkg.ci.yaml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/MdeModulePkg/MdeModulePkg.ci.yaml b/MdeModulePkg/MdeModulePkg.ci.yaml index 0bf149f205..3b6e747075 100644 --- a/MdeModulePkg/MdeModulePkg.ci.yaml +++ b/MdeModulePkg/MdeModulePkg.ci.yaml @@ -9,6 +9,10 @@ "CompilerPlugin": {
"DscPath": "MdeModulePkg.dsc"
},
+ ## options defined ci/Plugin/HostUnitTestCompilerPlugin
+ "HostUnitTestCompilerPlugin": {
+ "DscPath": "Test/MdeModulePkgHostTest.dsc"
+ },
## options defined ci/Plugin/CharEncodingCheck
"CharEncodingCheck": {
@@ -24,7 +28,9 @@ "ArmPkg/ArmPkg.dec" # this should be fixed by promoting an abstraction
],
# For host based unit tests
- "AcceptableDependencies-HOST_APPLICATION":[],
+ "AcceptableDependencies-HOST_APPLICATION":[
+ "UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec"
+ ],
# For UEFI shell based apps
"AcceptableDependencies-UEFI_APPLICATION":[],
"IgnoreInf": []
@@ -35,6 +41,11 @@ "IgnoreInf": [],
"DscPath": "MdeModulePkg.dsc"
},
+ ## options defined ci/Plugin/HostUnitTestDscCompleteCheck
+ "HostUnitTestDscCompleteCheck": {
+ "IgnoreInf": [""],
+ "DscPath": "Test/MdeModulePkgHostTest.dsc"
+ },
## options defined ci/Plugin/GuidCheck
"GuidCheck": {
|