History | View | Annotate | Download (19.7 kB)
acpi unit-test: compare DSDT and SSDT tables against expected values
This test will run only if iasl is installed on the host machine.The test plan: 1. Dumps the ACPI tables as AML on the disk. 2. Runs iasl to disassembly the tables into ASL files. 3. Runs iasl to disassembly the offline AML files into ASL files....
acpi unit-test: extract iasl executable from configuration
The test checked if iasl is installed by running "iasl" and checking the error output.It is better to use the iasl executable as appearsin configuration.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>...
acpi unit-test: hook to rebuild expected aml files
When running the test with TEST_ACPI_REBUILD_AML=y environmentvariable, the test will rebuild and validate the expected amlfiles.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests: fix acpi to work on bigendian host
Double endianness convertion make this test failing on POWERPC machinerunning in big-endian.
This fixes the test to success on big-endian host.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi unit-test: renamed ssdt_tables to tables
Just a refactoring, ssdt_tables name was confusing asit included other tables as well.
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
acpi unit-test: resolved iasl crash
It seems that iasl has an issue when disassemblessome ACPI tables using the command line:iasl -e DSDT -e SSDT -d HPET
Modified the iasl command line to "iasl -d HPET" until the problem is solved. The command lineremained the same for DSDT and SSDT tables....
acpi unit-test: do not fail on asl mismatch
The asl comparison will break every time the ACPItables are updated. This may break the git bisect.Instead of failing print a warning on stderrincluding the retained asl files, so they can becompared offline....
acpi unit-test: Remove temporary disk after test
Signed-off-by: Fam Zheng <famz@redhat.com>Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
acpi unit-test: adjust the test data structure for better handling
Ensure more then one instance of test_data may existat a given time. It will help to compare differentacpi table versions.
acpi unit-test: load and check facs table
FACS table does not have a checksum, so we cancheck at least the signature (existence).
acpi unit-test: verify signature and checksum
Read all ACPI tables from guest - will be useful for further unit tests.
Follow pointers between ACPI tables checking signature and format forcorrectness. Verify checksum for all tables.
acpi-test: basic acpi unit-test
We run bios, and boot a minimal boot sector that immediately halts.Then poke at memory to find ACPI tables.
This only checks that RSDP is there.More will be added later.
Cc: Andreas Färber <afaerber@suse.de>Cc: Markus Armbruster <armbru@redhat.com>...