-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UefiCpuPkg/CpuPageTableLib/UnitTest: Add host based unit test #3201
Merged
mergify
merged 1 commit into
tianocore:master
from
LiuZhiguang001:PageTableLib_UnitTest
Aug 16, 2022
Merged
UefiCpuPkg/CpuPageTableLib/UnitTest: Add host based unit test #3201
mergify
merged 1 commit into
tianocore:master
from
LiuZhiguang001:PageTableLib_UnitTest
Aug 16, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LiuZhiguang001
force-pushed
the
PageTableLib_UnitTest
branch
4 times, most recently
from
August 12, 2022 08:56
5c6b04e
to
e28f34b
Compare
LiuZhiguang001
added a commit
to LiuZhiguang001/edk2
that referenced
this pull request
Aug 15, 2022
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. V2: Use random instead of fuzzy to avoid confusion code link: tianocore#3201 Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
LiuZhiguang001
force-pushed
the
PageTableLib_UnitTest
branch
from
August 15, 2022 05:21
e28f34b
to
59cacd3
Compare
LiuZhiguang001
added a commit
to LiuZhiguang001/edk2
that referenced
this pull request
Aug 15, 2022
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. V2: Use random instead of fuzzy to avoid confusion code link: tianocore#3201 Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
LiuZhiguang001
force-pushed
the
PageTableLib_UnitTest
branch
from
August 15, 2022 05:24
59cacd3
to
d042844
Compare
niruiyu
pushed a commit
to LiuZhiguang001/edk2
that referenced
this pull request
Aug 16, 2022
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. V2: Use random instead of fuzzy to avoid confusion code link: tianocore#3201 Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
niruiyu
force-pushed
the
PageTableLib_UnitTest
branch
from
August 16, 2022 02:26
d042844
to
84d0155
Compare
niruiyu
added
push
Auto push patch series in PR if all checks pass
and removed
push
Auto push patch series in PR if all checks pass
labels
Aug 16, 2022
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>
LiuZhiguang001
force-pushed
the
PageTableLib_UnitTest
branch
from
August 16, 2022 02:31
84d0155
to
665277e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 fuzzy test case.
Manual test case creates some corner case to test function PageTableMap.
Fuzzy 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 fuzzy 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
Cc: Ray Ni ray.ni@intel.com
Cc: Rahul Kumar rahul1.kumar@intel.com
Signed-off-by: Zhiguang Liu zhiguang.liu@intel.com