Miscellaneous Test Suite And Userland Core Support Changes #324
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.
Contains the following changes:
1] New Crash Dump Directory Hierarchy
Instead of unarchiving one reference dump at a time and testing it it is now possible to have multiple unpacked crash dumps at the same time and run the regression tests against both. Each dump is now automatically unpacked under
test/integration/data/dumps/<name>.It is also possible now to generate regression output for multiple dumps at the same time.
2] Better support for automatically loading userland shared libs
The
-s/load_debug_info()functionality would only look for.kofiles (e.g. kernel modules) given a directory. Now it can also automatically detect debug links and shared objects.3] Self-Descriptive Regression Output
All regression output files now contain the following appendix:
This makes it easier for us to not have to declare in the test suite code whether a test case is negative or positive. Simplifying our test code.
4] Test Infrastructure Refactor & Userland Support
The test suite infrastructure code has been refactored to handle userland core dumps together with kernel crash dumps. Unfortuantely due to a bug in drgn we can't use a ztest core dump for regressions (even though sdb/drgn can handle a userland core dump just fine in the host system). I'll come up with a smaller userland core dump soon so we can test the userland version of stacks and work on the drgn bug when my free time allows.