Commit 482a982
authored
Miscellaneous Test Suite And Userland Core Support Changes (#324)
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 `.ko`
files (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:
```
@#$ EXIT CODE $#@
<exit code number>
```
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.1 parent 01017b0 commit 482a982
File tree
467 files changed
+1305
-408
lines changed- .github/scripts
- sdb/internal
- tests/integration
- data/regression_output
- dump.201912060006
- core
- linux
- spl
- zfs
- dump.202303131823
- core
- linux
- spl
- zfs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
467 files changed
+1305
-408
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 10 | + | |
| 11 | + | |
22 | 12 | | |
23 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
129 | | - | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
144 | 151 | | |
145 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
146 | 167 | | |
147 | 168 | | |
148 | 169 | | |
| |||
191 | 212 | | |
192 | 213 | | |
193 | 214 | | |
194 | | - | |
| 215 | + | |
195 | 216 | | |
196 | 217 | | |
197 | 218 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
0 commit comments