summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/UefiCpuPkg.ci.yaml
diff options
context:
space:
mode:
authorZhiguang Liu <zhiguang.liu@intel.com>2022-06-27 16:58:48 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-08-31 01:57:58 +0000
commit04ecdc38cd4d43fa8d4ee6da5d9305a27d3eda6a (patch)
tree0d81d27d0ef556be2c517cda869f70eb28055ea2 /UefiCpuPkg/UefiCpuPkg.ci.yaml
parent383d34159d136f2dc923dfb6a722912b1af451b7 (diff)
downloadedk2-04ecdc38cd4d43fa8d4ee6da5d9305a27d3eda6a.tar.gz
edk2-04ecdc38cd4d43fa8d4ee6da5d9305a27d3eda6a.tar.bz2
edk2-04ecdc38cd4d43fa8d4ee6da5d9305a27d3eda6a.zip
UefiCpuPkg/CpuPageTableLib/UnitTest: Add host based unit test
Add host based unit tests for the CpuPageTableLib services. Unit test focuses on PageTableMap function, containing two kinds of test cases: manual test case and random test case. Manual test case creates some corner case to test function PageTableMap. Random test case generates multiple random memory entries (with random attribute) as the input of function PageTableMap to get the output pagetable. Output pagetable will be validated and be parsed to get output memory entries, and then the input and output memory entries will be compared to verify the functionality. The unit test is not perfect yet. There are options for random test, and some of them control the test coverage, and some option are not ready. Will enhance in the future. Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Diffstat (limited to 'UefiCpuPkg/UefiCpuPkg.ci.yaml')
-rw-r--r--UefiCpuPkg/UefiCpuPkg.ci.yaml4
1 files changed, 3 insertions, 1 deletions
diff --git a/UefiCpuPkg/UefiCpuPkg.ci.yaml b/UefiCpuPkg/UefiCpuPkg.ci.yaml
index 6e0ab95fd8..bbdc44a45b 100644
--- a/UefiCpuPkg/UefiCpuPkg.ci.yaml
+++ b/UefiCpuPkg/UefiCpuPkg.ci.yaml
@@ -15,6 +15,7 @@
## "<ErrorID>", "<KeyWord>"
## ]
"ExceptionList": [
+ "8006", "main"
],
## Both file path and directory path are accepted.
"IgnoreFiles": [
@@ -38,7 +39,8 @@
],
# For host based unit tests
"AcceptableDependencies-HOST_APPLICATION":[
- "UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec"
+ "UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec",
+ "CryptoPkg/CryptoPkg.dec"
],
# For UEFI shell based apps
"AcceptableDependencies-UEFI_APPLICATION":[],