acpi unit-test: compare DSDT and SSDT tables against expected values
commit9e8458c0232356a0c0eebb4fa4928fd02250c5f4
authorMarcel Apfelbaum <marcel.a@redhat.com>
Thu, 26 Dec 2013 14:54:21 +0000 (26 16:54 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jan 2014 11:06:49 +0000 (26 13:06 +0200)
tree930c4577d0bfd738aa641feb7d22ce42efc76a99
parentc2304b52f1b20fa79d299177d1fe75df2d265bfa
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.
 4. Compares the ASL files.

The test runs for both default machine and q35.
In case the test fails, it can be easily tweaked to
show the differences between the ASL files and
understand the issue.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/acpi-test.c