| 1 |
This is a simple testcase to verify the NBFT parser output over a set |
| 2 |
of provided ACPI NBFT tables. |
| 3 |
|
| 4 |
The 'nbft-dump' test utility is a simple tool to print out all elements |
| 5 |
and nested arrays of the nbft_info structs, bearing only minimal logic. |
| 6 |
|
| 7 |
The 'tables' directory contains sample binary files taken from |
| 8 |
/sys/firmware/acpi/tables. The 'tables_bad' then contains experiments, older |
| 9 |
table revisions or malformed data to test the parser error path. |
| 10 |
|
| 11 |
The "diffs" directory contains reference output generated by the 'nbft-dump' |
| 12 |
utility that is being compared against actual testcase run output. Everytime |
| 13 |
'nbft-dump.c' is modified these reference output files need to be regenerated |
| 14 |
by calling `ninja -C .build nbft-diffs` over the configured meson project. |
| 15 |
|
| 16 |
The tests are typically ran as part of the standard `meson test -C .build` |
| 17 |
invocation. |