Andrei Emeltchenko
eef605d6cc
tests: lib: acpi: Add test verifying assert on devscope overflow
...
Add test verifying we catch assert() when subsctrucure is too big.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Andrei Emeltchenko
a7afc87527
tests: lib: acpi: General header cleanup
...
Cleanup headers and definitions to make code more readable.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Andrei Emeltchenko
d89a274e7a
tests: lib: acpi: Verify assert() on invalid size
...
Catch assert() when invalid unit size is bigger then actual
table or subtable size.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Andrei Emeltchenko
bffcd1de2a
tests: lib: acpi: Add testing acpi_dmar_ioapic_get()
...
Add testing for acpi_dmar_ioapic_get() function.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Andrei Emeltchenko
9c7b952db5
tests: lib: acpi: Add testing for dmar_foreach_devscope()
...
Add unit testing for dmar_foreach_devscope() function.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Andrei Emeltchenko
9cf06173f7
tests: lib: acpi: Refactor DMAR structure and tests
...
Refactor DMAR structure to allow more tests. Use fake void function
for invalid size tests.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2024-02-09 13:16:33 -06:00
Najumon B.A
62b2af70ba
tests: lib: acpi: add fake x86 acpi function
...
add fake x86 acpi function and config macros for acpi unit test
Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2024-01-31 15:03:06 +01:00
Andrei Emeltchenko
0223fe897f
tests: lib: acpi: Convert to FFF
...
Convert fake functions to FFF.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-12-19 11:04:19 +01:00
Andrei Emeltchenko
751f871b20
tests: acpi: Add unit test for ACPI table parsing
...
Initial unit test for ACPI table parsing.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
2023-12-19 11:04:19 +01:00