acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits
authorAni Sinha <ani@anisinha.ca>
Fri, 21 Oct 2022 09:51:02 +0000 (15:21 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Nov 2022 10:56:32 +0000 (06:56 -0400)
commit87853babb37759bcb144dd18925a340be8fe8244
treeb8a5d0216bcb8247ce3e8f2772f2d6f984c77905
parent39fff6f3e8b3dd4f1708f8bdde0a51adbe63188a
acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits

This is initial commit of cpuid, acpi and smbios python test scripts for
biosbits to execute. No change has been made to them from the original code
written by the biosbits author Josh Triplett. They are required to be installed
into the bits iso file and then run from within the virtual machine booted off
with biosbits iso.

The test scripts have a ".py2" extension in order to prevent avocado from
loading them. They are written in python 2.7 and are run from within bios bits.
There is no need for avocado to try to load them and call out errors on python3
specific syntaxes.

The original location of these tests are here:
https://github.com/biosbits/bits/blob/master/python/testacpi.py
https://github.com/biosbits/bits/blob/master/python/smbios.py
https://github.com/biosbits/bits/blob/master/python/testcpuid.py

For QEMU, we maintain a fork of the above repo here with numerious fixes:
https://gitlab.com/qemu-project/biosbits-bits

The acpi test for example is maintained here in the fork:
https://gitlab.com/qemu-project/biosbits-bits/-/raw/master/python/testacpi.py

Cc: Daniel P. Berrangé <berrange@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Maydell Peter <peter.maydell@linaro.org>
Cc: John Snow <jsnow@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Alex Bennée <alex.bennee@linaro.org>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Michael Tsirkin <mst@redhat.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221021095108.104843-2-ani@anisinha.ca>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/avocado/acpi-bits/bits-tests/smbios.py2 [new file with mode: 0644]
tests/avocado/acpi-bits/bits-tests/testacpi.py2 [new file with mode: 0644]
tests/avocado/acpi-bits/bits-tests/testcpuid.py2 [new file with mode: 0644]