diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-11-02 11:52:36 +0000 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-11-05 13:23:31 -0500 |
commit | 438c78dab75e3b9d1bc8da1d5401da77c84e27b7 (patch) | |
tree | 25dd40ad125519d5a974fb1a610f43694db84f2a /tests/data | |
parent | b2f7a038bb4c4fc5ce6b8486e8513dfd97665e2a (diff) |
tests: Move tests/acpi-test-data/ to tests/data/acpi/
Currently tests/acpi-test-data contains data files used by the
bios-tables-test, and configure individually symlinks those
data files into the build directory using a wildcard.
Using a wildcard like this is a bad idea, because if a new
data file is added, nothing causes configure to be rerun,
and so no symlink is added for the new file. This can cause
tests to spuriously fail when they can't find their data.
Instead, it's better to symlink an entire directory of
data files. We already have such a directory: tests/data.
Move the data files from tests/acpi-test-data/ to
tests/data/acpi/, and remove the unnecessary symlinking.
We can remove entirely the note in rebuild-expected-aml.sh
about copying any new data files, because now they will
be in the source directory, not the build directory, and
no copying is required.
(We can't just change the existing tests/acpi-test-data/
to being a symlinked directory, because if we did that and
a developer switched git branches from one after that change
to one before it then configure would end up trashing all
the test files by making them symlinks to themselves.
Changing their path avoids this annoyance.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/data')
44 files changed, 34 insertions, 0 deletions
diff --git a/tests/data/acpi/pc/APIC b/tests/data/acpi/pc/APIC Binary files differnew file mode 100644 index 0000000000..84509e0ae4 --- /dev/null +++ b/tests/data/acpi/pc/APIC diff --git a/tests/data/acpi/pc/APIC.cphp b/tests/data/acpi/pc/APIC.cphp Binary files differnew file mode 100644 index 0000000000..1bf8a0a63b --- /dev/null +++ b/tests/data/acpi/pc/APIC.cphp diff --git a/tests/data/acpi/pc/APIC.dimmpxm b/tests/data/acpi/pc/APIC.dimmpxm Binary files differnew file mode 100644 index 0000000000..427bb08248 --- /dev/null +++ b/tests/data/acpi/pc/APIC.dimmpxm diff --git a/tests/data/acpi/pc/DSDT b/tests/data/acpi/pc/DSDT Binary files differnew file mode 100644 index 0000000000..c6adfe32d5 --- /dev/null +++ b/tests/data/acpi/pc/DSDT diff --git a/tests/data/acpi/pc/DSDT.bridge b/tests/data/acpi/pc/DSDT.bridge Binary files differnew file mode 100644 index 0000000000..f01fa3ad4e --- /dev/null +++ b/tests/data/acpi/pc/DSDT.bridge diff --git a/tests/data/acpi/pc/DSDT.cphp b/tests/data/acpi/pc/DSDT.cphp Binary files differnew file mode 100644 index 0000000000..3295d81c7f --- /dev/null +++ b/tests/data/acpi/pc/DSDT.cphp diff --git a/tests/data/acpi/pc/DSDT.dimmpxm b/tests/data/acpi/pc/DSDT.dimmpxm Binary files differnew file mode 100644 index 0000000000..f6ec911b11 --- /dev/null +++ b/tests/data/acpi/pc/DSDT.dimmpxm diff --git a/tests/data/acpi/pc/DSDT.ipmikcs b/tests/data/acpi/pc/DSDT.ipmikcs Binary files differnew file mode 100644 index 0000000000..2633a8cecf --- /dev/null +++ b/tests/data/acpi/pc/DSDT.ipmikcs diff --git a/tests/data/acpi/pc/DSDT.memhp b/tests/data/acpi/pc/DSDT.memhp Binary files differnew file mode 100644 index 0000000000..e31ef50296 --- /dev/null +++ b/tests/data/acpi/pc/DSDT.memhp diff --git a/tests/data/acpi/pc/DSDT.numamem b/tests/data/acpi/pc/DSDT.numamem Binary files differnew file mode 100644 index 0000000000..71a975b3e2 --- /dev/null +++ b/tests/data/acpi/pc/DSDT.numamem diff --git a/tests/data/acpi/pc/FACP b/tests/data/acpi/pc/FACP Binary files differnew file mode 100644 index 0000000000..261ebdc5d1 --- /dev/null +++ b/tests/data/acpi/pc/FACP diff --git a/tests/data/acpi/pc/FACS b/tests/data/acpi/pc/FACS Binary files differnew file mode 100644 index 0000000000..fc67ecc407 --- /dev/null +++ b/tests/data/acpi/pc/FACS diff --git a/tests/data/acpi/pc/HPET b/tests/data/acpi/pc/HPET Binary files differnew file mode 100644 index 0000000000..df689b8f99 --- /dev/null +++ b/tests/data/acpi/pc/HPET diff --git a/tests/data/acpi/pc/NFIT.dimmpxm b/tests/data/acpi/pc/NFIT.dimmpxm Binary files differnew file mode 100644 index 0000000000..598d331b75 --- /dev/null +++ b/tests/data/acpi/pc/NFIT.dimmpxm diff --git a/tests/data/acpi/pc/SLIT.cphp b/tests/data/acpi/pc/SLIT.cphp Binary files differnew file mode 100644 index 0000000000..74ec3b4b46 --- /dev/null +++ b/tests/data/acpi/pc/SLIT.cphp diff --git a/tests/data/acpi/pc/SLIT.memhp b/tests/data/acpi/pc/SLIT.memhp Binary files differnew file mode 100644 index 0000000000..74ec3b4b46 --- /dev/null +++ b/tests/data/acpi/pc/SLIT.memhp diff --git a/tests/data/acpi/pc/SRAT.cphp b/tests/data/acpi/pc/SRAT.cphp Binary files differnew file mode 100644 index 0000000000..ff2137642f --- /dev/null +++ b/tests/data/acpi/pc/SRAT.cphp diff --git a/tests/data/acpi/pc/SRAT.dimmpxm b/tests/data/acpi/pc/SRAT.dimmpxm Binary files differnew file mode 100644 index 0000000000..f5c0267ea2 --- /dev/null +++ b/tests/data/acpi/pc/SRAT.dimmpxm diff --git a/tests/data/acpi/pc/SRAT.memhp b/tests/data/acpi/pc/SRAT.memhp Binary files differnew file mode 100644 index 0000000000..e508b4ae3c --- /dev/null +++ b/tests/data/acpi/pc/SRAT.memhp diff --git a/tests/data/acpi/pc/SRAT.numamem b/tests/data/acpi/pc/SRAT.numamem Binary files differnew file mode 100644 index 0000000000..119922f497 --- /dev/null +++ b/tests/data/acpi/pc/SRAT.numamem diff --git a/tests/data/acpi/pc/SSDT.dimmpxm b/tests/data/acpi/pc/SSDT.dimmpxm Binary files differnew file mode 100644 index 0000000000..8ba0e67cb7 --- /dev/null +++ b/tests/data/acpi/pc/SSDT.dimmpxm diff --git a/tests/data/acpi/q35/APIC b/tests/data/acpi/q35/APIC Binary files differnew file mode 100644 index 0000000000..84509e0ae4 --- /dev/null +++ b/tests/data/acpi/q35/APIC diff --git a/tests/data/acpi/q35/APIC.cphp b/tests/data/acpi/q35/APIC.cphp Binary files differnew file mode 100644 index 0000000000..1bf8a0a63b --- /dev/null +++ b/tests/data/acpi/q35/APIC.cphp diff --git a/tests/data/acpi/q35/APIC.dimmpxm b/tests/data/acpi/q35/APIC.dimmpxm Binary files differnew file mode 100644 index 0000000000..427bb08248 --- /dev/null +++ b/tests/data/acpi/q35/APIC.dimmpxm diff --git a/tests/data/acpi/q35/DSDT b/tests/data/acpi/q35/DSDT Binary files differnew file mode 100644 index 0000000000..7576ffcd05 --- /dev/null +++ b/tests/data/acpi/q35/DSDT diff --git a/tests/data/acpi/q35/DSDT.bridge b/tests/data/acpi/q35/DSDT.bridge Binary files differnew file mode 100644 index 0000000000..c623cc5d72 --- /dev/null +++ b/tests/data/acpi/q35/DSDT.bridge diff --git a/tests/data/acpi/q35/DSDT.cphp b/tests/data/acpi/q35/DSDT.cphp Binary files differnew file mode 100644 index 0000000000..7ac526e466 --- /dev/null +++ b/tests/data/acpi/q35/DSDT.cphp diff --git a/tests/data/acpi/q35/DSDT.dimmpxm b/tests/data/acpi/q35/DSDT.dimmpxm Binary files differnew file mode 100644 index 0000000000..3837792dec --- /dev/null +++ b/tests/data/acpi/q35/DSDT.dimmpxm diff --git a/tests/data/acpi/q35/DSDT.ipmibt b/tests/data/acpi/q35/DSDT.ipmibt Binary files differnew file mode 100644 index 0000000000..c7f431f058 --- /dev/null +++ b/tests/data/acpi/q35/DSDT.ipmibt diff --git a/tests/data/acpi/q35/DSDT.memhp b/tests/data/acpi/q35/DSDT.memhp Binary files differnew file mode 100644 index 0000000000..8fba0baf79 --- /dev/null +++ b/tests/data/acpi/q35/DSDT.memhp diff --git a/tests/data/acpi/q35/DSDT.numamem b/tests/data/acpi/q35/DSDT.numamem Binary files differnew file mode 100644 index 0000000000..6c0d4f2bcb --- /dev/null +++ b/tests/data/acpi/q35/DSDT.numamem diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP Binary files differnew file mode 100644 index 0000000000..72c9d97902 --- /dev/null +++ b/tests/data/acpi/q35/FACP diff --git a/tests/data/acpi/q35/FACS b/tests/data/acpi/q35/FACS Binary files differnew file mode 100644 index 0000000000..fc67ecc407 --- /dev/null +++ b/tests/data/acpi/q35/FACS diff --git a/tests/data/acpi/q35/HPET b/tests/data/acpi/q35/HPET Binary files differnew file mode 100644 index 0000000000..df689b8f99 --- /dev/null +++ b/tests/data/acpi/q35/HPET diff --git a/tests/data/acpi/q35/MCFG b/tests/data/acpi/q35/MCFG Binary files differnew file mode 100644 index 0000000000..79ceb27a03 --- /dev/null +++ b/tests/data/acpi/q35/MCFG diff --git a/tests/data/acpi/q35/NFIT.dimmpxm b/tests/data/acpi/q35/NFIT.dimmpxm Binary files differnew file mode 100644 index 0000000000..598d331b75 --- /dev/null +++ b/tests/data/acpi/q35/NFIT.dimmpxm diff --git a/tests/data/acpi/q35/SLIT.cphp b/tests/data/acpi/q35/SLIT.cphp Binary files differnew file mode 100644 index 0000000000..74ec3b4b46 --- /dev/null +++ b/tests/data/acpi/q35/SLIT.cphp diff --git a/tests/data/acpi/q35/SLIT.memhp b/tests/data/acpi/q35/SLIT.memhp Binary files differnew file mode 100644 index 0000000000..74ec3b4b46 --- /dev/null +++ b/tests/data/acpi/q35/SLIT.memhp diff --git a/tests/data/acpi/q35/SRAT.cphp b/tests/data/acpi/q35/SRAT.cphp Binary files differnew file mode 100644 index 0000000000..ff2137642f --- /dev/null +++ b/tests/data/acpi/q35/SRAT.cphp diff --git a/tests/data/acpi/q35/SRAT.dimmpxm b/tests/data/acpi/q35/SRAT.dimmpxm Binary files differnew file mode 100644 index 0000000000..f5c0267ea2 --- /dev/null +++ b/tests/data/acpi/q35/SRAT.dimmpxm diff --git a/tests/data/acpi/q35/SRAT.memhp b/tests/data/acpi/q35/SRAT.memhp Binary files differnew file mode 100644 index 0000000000..e508b4ae3c --- /dev/null +++ b/tests/data/acpi/q35/SRAT.memhp diff --git a/tests/data/acpi/q35/SRAT.numamem b/tests/data/acpi/q35/SRAT.numamem Binary files differnew file mode 100644 index 0000000000..119922f497 --- /dev/null +++ b/tests/data/acpi/q35/SRAT.numamem diff --git a/tests/data/acpi/q35/SSDT.dimmpxm b/tests/data/acpi/q35/SSDT.dimmpxm Binary files differnew file mode 100644 index 0000000000..2d5b721bcf --- /dev/null +++ b/tests/data/acpi/q35/SSDT.dimmpxm diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh new file mode 100755 index 0000000000..bf9ba242ad --- /dev/null +++ b/tests/data/acpi/rebuild-expected-aml.sh @@ -0,0 +1,34 @@ +#! /bin/bash + +# +# Rebuild expected AML files for acpi unit-test +# +# Copyright (c) 2013 Red Hat Inc. +# +# Authors: +# Marcel Apfelbaum <marcel.a@redhat.com> +# +# This work is licensed under the terms of the GNU GPLv2. +# See the COPYING.LIB file in the top-level directory. + +qemu= + +if [ -e x86_64-softmmu/qemu-system-x86_64 ]; then + qemu="x86_64-softmmu/qemu-system-x86_64" +elif [ -e i386-softmmu/qemu-system-i386 ]; then + qemu="i386-softmmu/qemu-system-i386" +else + echo "Run 'make' to build the qemu exectutable!" + echo "Run this script from the build directory." + exit 1; +fi + +if [ ! -e "tests/bios-tables-test" ]; then + echo "Test: bios-tables-test is required! Run make check before this script." + echo "Run this script from the build directory." + exit 1; +fi + +TEST_ACPI_REBUILD_AML=y QTEST_QEMU_BINARY=$qemu tests/bios-tables-test + +echo "The files were rebuilt and can be added to git." |