Statistics
| Branch: | Revision:

root / tests / acpi-test.c @ feature-archipelago

History | View | Annotate | Download (19.7 kB)

# Date Author Comment
9e8458c0 01/26/2014 01:06 pm Marcel Apfelbaum

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....

cc8fa0e8 01/26/2014 01:06 pm Marcel Apfelbaum

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 appears
in configuration.

Signed-off-by: Marcel Apfelbaum <>...

4500bc98 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: hook to rebuild expected aml files

When running the test with TEST_ACPI_REBUILD_AML=y environment
variable, the test will rebuild and validate the expected aml
files.

Signed-off-by: Marcel Apfelbaum <>
Signed-off-by: Michael S. Tsirkin <>

084137dd 01/26/2014 01:06 pm Alexey Kardashevskiy

tests: fix acpi to work on bigendian host

Double endianness convertion make this test failing on POWERPC machine
running in big-endian.

This fixes the test to success on big-endian host.

Signed-off-by: Alexey Kardashevskiy <>
Signed-off-by: Michael S. Tsirkin <>

a3a74ab9 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: renamed ssdt_tables to tables

Just a refactoring, ssdt_tables name was confusing as
it included other tables as well.

Signed-off-by: Marcel Apfelbaum <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>

69d09245 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: resolved iasl crash

It seems that iasl has an issue when disassembles
some 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 line
remained the same for DSDT and SSDT tables....

0651596c 01/26/2014 01:06 pm Marcel Apfelbaum

acpi unit-test: do not fail on asl mismatch

The asl comparison will break every time the ACPI
tables are updated. This may break the git bisect.
Instead of failing print a warning on stderr
including the retained asl files, so they can be
compared offline....

5862ad0f 01/01/2014 04:03 pm Fam Zheng

acpi unit-test: Remove temporary disk after test

Signed-off-by: Fam Zheng <>
Signed-off-by: Michael Tokarev <>

8ac2adf7 12/11/2013 08:11 pm Marcel Apfelbaum

acpi unit-test: adjust the test data structure for better handling

Ensure more then one instance of test_data may exist
at a given time. It will help to compare different
acpi table versions.

Signed-off-by: Marcel Apfelbaum <>
Signed-off-by: Michael S. Tsirkin <>

15650602 12/11/2013 08:11 pm Marcel Apfelbaum

acpi unit-test: load and check facs table

FACS table does not have a checksum, so we can
check at least the signature (existence).

Signed-off-by: Marcel Apfelbaum <>
Signed-off-by: Michael S. Tsirkin <>

53333801 12/10/2013 01:29 pm Marcel Apfelbaum

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 for
correctness. Verify checksum for all tables.

Signed-off-by: Marcel Apfelbaum <>...

ad6423a7 12/10/2013 12:29 pm Michael S. Tsirkin

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 <>
Cc: Markus Armbruster <>...