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 | |
parent | b2f7a038bb4c4fc5ce6b8486e8513dfd97665e2a (diff) | |
download | qemu-438c78dab75e3b9d1bc8da1d5401da77c84e27b7.zip qemu-438c78dab75e3b9d1bc8da1d5401da77c84e27b7.tar.gz qemu-438c78dab75e3b9d1bc8da1d5401da77c84e27b7.tar.bz2 |
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')
-rw-r--r-- | tests/bios-tables-test.c | 2 | ||||
-rw-r--r-- | tests/data/acpi/pc/APIC (renamed from tests/acpi-test-data/pc/APIC) | bin | 120 -> 120 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/APIC.cphp (renamed from tests/acpi-test-data/pc/APIC.cphp) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/APIC.dimmpxm (renamed from tests/acpi-test-data/pc/APIC.dimmpxm) | bin | 144 -> 144 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT (renamed from tests/acpi-test-data/pc/DSDT) | bin | 5131 -> 5131 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.bridge (renamed from tests/acpi-test-data/pc/DSDT.bridge) | bin | 6990 -> 6990 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.cphp (renamed from tests/acpi-test-data/pc/DSDT.cphp) | bin | 5594 -> 5594 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.dimmpxm (renamed from tests/acpi-test-data/pc/DSDT.dimmpxm) | bin | 6790 -> 6790 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.ipmikcs (renamed from tests/acpi-test-data/pc/DSDT.ipmikcs) | bin | 5203 -> 5203 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.memhp (renamed from tests/acpi-test-data/pc/DSDT.memhp) | bin | 6496 -> 6496 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/DSDT.numamem (renamed from tests/acpi-test-data/pc/DSDT.numamem) | bin | 5137 -> 5137 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/FACP (renamed from tests/acpi-test-data/pc/FACP) | bin | 116 -> 116 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/FACS (renamed from tests/acpi-test-data/pc/FACS) | bin | 64 -> 64 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/HPET (renamed from tests/acpi-test-data/pc/HPET) | bin | 56 -> 56 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/NFIT.dimmpxm (renamed from tests/acpi-test-data/pc/NFIT.dimmpxm) | bin | 240 -> 240 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SLIT.cphp (renamed from tests/acpi-test-data/pc/SLIT.cphp) | bin | 48 -> 48 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SLIT.memhp (renamed from tests/acpi-test-data/pc/SLIT.memhp) | bin | 48 -> 48 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SRAT.cphp (renamed from tests/acpi-test-data/pc/SRAT.cphp) | bin | 304 -> 304 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SRAT.dimmpxm (renamed from tests/acpi-test-data/pc/SRAT.dimmpxm) | bin | 392 -> 392 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SRAT.memhp (renamed from tests/acpi-test-data/pc/SRAT.memhp) | bin | 264 -> 264 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SRAT.numamem (renamed from tests/acpi-test-data/pc/SRAT.numamem) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | tests/data/acpi/pc/SSDT.dimmpxm (renamed from tests/acpi-test-data/pc/SSDT.dimmpxm) | bin | 685 -> 685 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/APIC (renamed from tests/acpi-test-data/q35/APIC) | bin | 120 -> 120 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/APIC.cphp (renamed from tests/acpi-test-data/q35/APIC.cphp) | bin | 160 -> 160 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/APIC.dimmpxm (renamed from tests/acpi-test-data/q35/APIC.dimmpxm) | bin | 144 -> 144 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT (renamed from tests/acpi-test-data/q35/DSDT) | bin | 7815 -> 7815 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.bridge (renamed from tests/acpi-test-data/q35/DSDT.bridge) | bin | 7832 -> 7832 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.cphp (renamed from tests/acpi-test-data/q35/DSDT.cphp) | bin | 8278 -> 8278 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.dimmpxm (renamed from tests/acpi-test-data/q35/DSDT.dimmpxm) | bin | 9474 -> 9474 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.ipmibt (renamed from tests/acpi-test-data/q35/DSDT.ipmibt) | bin | 7890 -> 7890 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.memhp (renamed from tests/acpi-test-data/q35/DSDT.memhp) | bin | 9180 -> 9180 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/DSDT.numamem (renamed from tests/acpi-test-data/q35/DSDT.numamem) | bin | 7821 -> 7821 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/FACP (renamed from tests/acpi-test-data/q35/FACP) | bin | 244 -> 244 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/FACS (renamed from tests/acpi-test-data/q35/FACS) | bin | 64 -> 64 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/HPET (renamed from tests/acpi-test-data/q35/HPET) | bin | 56 -> 56 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/MCFG (renamed from tests/acpi-test-data/q35/MCFG) | bin | 60 -> 60 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/NFIT.dimmpxm (renamed from tests/acpi-test-data/q35/NFIT.dimmpxm) | bin | 240 -> 240 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SLIT.cphp (renamed from tests/acpi-test-data/q35/SLIT.cphp) | bin | 48 -> 48 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SLIT.memhp (renamed from tests/acpi-test-data/q35/SLIT.memhp) | bin | 48 -> 48 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SRAT.cphp (renamed from tests/acpi-test-data/q35/SRAT.cphp) | bin | 304 -> 304 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SRAT.dimmpxm (renamed from tests/acpi-test-data/q35/SRAT.dimmpxm) | bin | 392 -> 392 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SRAT.memhp (renamed from tests/acpi-test-data/q35/SRAT.memhp) | bin | 264 -> 264 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SRAT.numamem (renamed from tests/acpi-test-data/q35/SRAT.numamem) | bin | 224 -> 224 bytes | |||
-rw-r--r-- | tests/data/acpi/q35/SSDT.dimmpxm (renamed from tests/acpi-test-data/q35/SSDT.dimmpxm) | bin | 685 -> 685 bytes | |||
-rwxr-xr-x | tests/data/acpi/rebuild-expected-aml.sh (renamed from tests/acpi-test-data/rebuild-expected-aml.sh) | 2 |
45 files changed, 1 insertions, 3 deletions
diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 02e77ec..b14c8ea 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -42,7 +42,7 @@ typedef struct { } test_data; static char disk[] = "tests/acpi-test-disk-XXXXXX"; -static const char *data_dir = "tests/acpi-test-data"; +static const char *data_dir = "tests/data/acpi"; #ifdef CONFIG_IASL static const char *iasl = stringify(CONFIG_IASL); #else diff --git a/tests/acpi-test-data/pc/APIC b/tests/data/acpi/pc/APIC Binary files differindex 84509e0..84509e0 100644 --- a/tests/acpi-test-data/pc/APIC +++ b/tests/data/acpi/pc/APIC diff --git a/tests/acpi-test-data/pc/APIC.cphp b/tests/data/acpi/pc/APIC.cphp Binary files differindex 1bf8a0a..1bf8a0a 100644 --- a/tests/acpi-test-data/pc/APIC.cphp +++ b/tests/data/acpi/pc/APIC.cphp diff --git a/tests/acpi-test-data/pc/APIC.dimmpxm b/tests/data/acpi/pc/APIC.dimmpxm Binary files differindex 427bb08..427bb08 100644 --- a/tests/acpi-test-data/pc/APIC.dimmpxm +++ b/tests/data/acpi/pc/APIC.dimmpxm diff --git a/tests/acpi-test-data/pc/DSDT b/tests/data/acpi/pc/DSDT Binary files differindex c6adfe3..c6adfe3 100644 --- a/tests/acpi-test-data/pc/DSDT +++ b/tests/data/acpi/pc/DSDT diff --git a/tests/acpi-test-data/pc/DSDT.bridge b/tests/data/acpi/pc/DSDT.bridge Binary files differindex f01fa3a..f01fa3a 100644 --- a/tests/acpi-test-data/pc/DSDT.bridge +++ b/tests/data/acpi/pc/DSDT.bridge diff --git a/tests/acpi-test-data/pc/DSDT.cphp b/tests/data/acpi/pc/DSDT.cphp Binary files differindex 3295d81..3295d81 100644 --- a/tests/acpi-test-data/pc/DSDT.cphp +++ b/tests/data/acpi/pc/DSDT.cphp diff --git a/tests/acpi-test-data/pc/DSDT.dimmpxm b/tests/data/acpi/pc/DSDT.dimmpxm Binary files differindex f6ec911..f6ec911 100644 --- a/tests/acpi-test-data/pc/DSDT.dimmpxm +++ b/tests/data/acpi/pc/DSDT.dimmpxm diff --git a/tests/acpi-test-data/pc/DSDT.ipmikcs b/tests/data/acpi/pc/DSDT.ipmikcs Binary files differindex 2633a8c..2633a8c 100644 --- a/tests/acpi-test-data/pc/DSDT.ipmikcs +++ b/tests/data/acpi/pc/DSDT.ipmikcs diff --git a/tests/acpi-test-data/pc/DSDT.memhp b/tests/data/acpi/pc/DSDT.memhp Binary files differindex e31ef50..e31ef50 100644 --- a/tests/acpi-test-data/pc/DSDT.memhp +++ b/tests/data/acpi/pc/DSDT.memhp diff --git a/tests/acpi-test-data/pc/DSDT.numamem b/tests/data/acpi/pc/DSDT.numamem Binary files differindex 71a975b..71a975b 100644 --- a/tests/acpi-test-data/pc/DSDT.numamem +++ b/tests/data/acpi/pc/DSDT.numamem diff --git a/tests/acpi-test-data/pc/FACP b/tests/data/acpi/pc/FACP Binary files differindex 261ebdc..261ebdc 100644 --- a/tests/acpi-test-data/pc/FACP +++ b/tests/data/acpi/pc/FACP diff --git a/tests/acpi-test-data/pc/FACS b/tests/data/acpi/pc/FACS Binary files differindex fc67ecc..fc67ecc 100644 --- a/tests/acpi-test-data/pc/FACS +++ b/tests/data/acpi/pc/FACS diff --git a/tests/acpi-test-data/pc/HPET b/tests/data/acpi/pc/HPET Binary files differindex df689b8..df689b8 100644 --- a/tests/acpi-test-data/pc/HPET +++ b/tests/data/acpi/pc/HPET diff --git a/tests/acpi-test-data/pc/NFIT.dimmpxm b/tests/data/acpi/pc/NFIT.dimmpxm Binary files differindex 598d331..598d331 100644 --- a/tests/acpi-test-data/pc/NFIT.dimmpxm +++ b/tests/data/acpi/pc/NFIT.dimmpxm diff --git a/tests/acpi-test-data/pc/SLIT.cphp b/tests/data/acpi/pc/SLIT.cphp Binary files differindex 74ec3b4..74ec3b4 100644 --- a/tests/acpi-test-data/pc/SLIT.cphp +++ b/tests/data/acpi/pc/SLIT.cphp diff --git a/tests/acpi-test-data/pc/SLIT.memhp b/tests/data/acpi/pc/SLIT.memhp Binary files differindex 74ec3b4..74ec3b4 100644 --- a/tests/acpi-test-data/pc/SLIT.memhp +++ b/tests/data/acpi/pc/SLIT.memhp diff --git a/tests/acpi-test-data/pc/SRAT.cphp b/tests/data/acpi/pc/SRAT.cphp Binary files differindex ff21376..ff21376 100644 --- a/tests/acpi-test-data/pc/SRAT.cphp +++ b/tests/data/acpi/pc/SRAT.cphp diff --git a/tests/acpi-test-data/pc/SRAT.dimmpxm b/tests/data/acpi/pc/SRAT.dimmpxm Binary files differindex f5c0267..f5c0267 100644 --- a/tests/acpi-test-data/pc/SRAT.dimmpxm +++ b/tests/data/acpi/pc/SRAT.dimmpxm diff --git a/tests/acpi-test-data/pc/SRAT.memhp b/tests/data/acpi/pc/SRAT.memhp Binary files differindex e508b4a..e508b4a 100644 --- a/tests/acpi-test-data/pc/SRAT.memhp +++ b/tests/data/acpi/pc/SRAT.memhp diff --git a/tests/acpi-test-data/pc/SRAT.numamem b/tests/data/acpi/pc/SRAT.numamem Binary files differindex 119922f..119922f 100644 --- a/tests/acpi-test-data/pc/SRAT.numamem +++ b/tests/data/acpi/pc/SRAT.numamem diff --git a/tests/acpi-test-data/pc/SSDT.dimmpxm b/tests/data/acpi/pc/SSDT.dimmpxm Binary files differindex 8ba0e67..8ba0e67 100644 --- a/tests/acpi-test-data/pc/SSDT.dimmpxm +++ b/tests/data/acpi/pc/SSDT.dimmpxm diff --git a/tests/acpi-test-data/q35/APIC b/tests/data/acpi/q35/APIC Binary files differindex 84509e0..84509e0 100644 --- a/tests/acpi-test-data/q35/APIC +++ b/tests/data/acpi/q35/APIC diff --git a/tests/acpi-test-data/q35/APIC.cphp b/tests/data/acpi/q35/APIC.cphp Binary files differindex 1bf8a0a..1bf8a0a 100644 --- a/tests/acpi-test-data/q35/APIC.cphp +++ b/tests/data/acpi/q35/APIC.cphp diff --git a/tests/acpi-test-data/q35/APIC.dimmpxm b/tests/data/acpi/q35/APIC.dimmpxm Binary files differindex 427bb08..427bb08 100644 --- a/tests/acpi-test-data/q35/APIC.dimmpxm +++ b/tests/data/acpi/q35/APIC.dimmpxm diff --git a/tests/acpi-test-data/q35/DSDT b/tests/data/acpi/q35/DSDT Binary files differindex 7576ffc..7576ffc 100644 --- a/tests/acpi-test-data/q35/DSDT +++ b/tests/data/acpi/q35/DSDT diff --git a/tests/acpi-test-data/q35/DSDT.bridge b/tests/data/acpi/q35/DSDT.bridge Binary files differindex c623cc5..c623cc5 100644 --- a/tests/acpi-test-data/q35/DSDT.bridge +++ b/tests/data/acpi/q35/DSDT.bridge diff --git a/tests/acpi-test-data/q35/DSDT.cphp b/tests/data/acpi/q35/DSDT.cphp Binary files differindex 7ac526e..7ac526e 100644 --- a/tests/acpi-test-data/q35/DSDT.cphp +++ b/tests/data/acpi/q35/DSDT.cphp diff --git a/tests/acpi-test-data/q35/DSDT.dimmpxm b/tests/data/acpi/q35/DSDT.dimmpxm Binary files differindex 3837792..3837792 100644 --- a/tests/acpi-test-data/q35/DSDT.dimmpxm +++ b/tests/data/acpi/q35/DSDT.dimmpxm diff --git a/tests/acpi-test-data/q35/DSDT.ipmibt b/tests/data/acpi/q35/DSDT.ipmibt Binary files differindex c7f431f..c7f431f 100644 --- a/tests/acpi-test-data/q35/DSDT.ipmibt +++ b/tests/data/acpi/q35/DSDT.ipmibt diff --git a/tests/acpi-test-data/q35/DSDT.memhp b/tests/data/acpi/q35/DSDT.memhp Binary files differindex 8fba0ba..8fba0ba 100644 --- a/tests/acpi-test-data/q35/DSDT.memhp +++ b/tests/data/acpi/q35/DSDT.memhp diff --git a/tests/acpi-test-data/q35/DSDT.numamem b/tests/data/acpi/q35/DSDT.numamem Binary files differindex 6c0d4f2..6c0d4f2 100644 --- a/tests/acpi-test-data/q35/DSDT.numamem +++ b/tests/data/acpi/q35/DSDT.numamem diff --git a/tests/acpi-test-data/q35/FACP b/tests/data/acpi/q35/FACP Binary files differindex 72c9d97..72c9d97 100644 --- a/tests/acpi-test-data/q35/FACP +++ b/tests/data/acpi/q35/FACP diff --git a/tests/acpi-test-data/q35/FACS b/tests/data/acpi/q35/FACS Binary files differindex fc67ecc..fc67ecc 100644 --- a/tests/acpi-test-data/q35/FACS +++ b/tests/data/acpi/q35/FACS diff --git a/tests/acpi-test-data/q35/HPET b/tests/data/acpi/q35/HPET Binary files differindex df689b8..df689b8 100644 --- a/tests/acpi-test-data/q35/HPET +++ b/tests/data/acpi/q35/HPET diff --git a/tests/acpi-test-data/q35/MCFG b/tests/data/acpi/q35/MCFG Binary files differindex 79ceb27..79ceb27 100644 --- a/tests/acpi-test-data/q35/MCFG +++ b/tests/data/acpi/q35/MCFG diff --git a/tests/acpi-test-data/q35/NFIT.dimmpxm b/tests/data/acpi/q35/NFIT.dimmpxm Binary files differindex 598d331..598d331 100644 --- a/tests/acpi-test-data/q35/NFIT.dimmpxm +++ b/tests/data/acpi/q35/NFIT.dimmpxm diff --git a/tests/acpi-test-data/q35/SLIT.cphp b/tests/data/acpi/q35/SLIT.cphp Binary files differindex 74ec3b4..74ec3b4 100644 --- a/tests/acpi-test-data/q35/SLIT.cphp +++ b/tests/data/acpi/q35/SLIT.cphp diff --git a/tests/acpi-test-data/q35/SLIT.memhp b/tests/data/acpi/q35/SLIT.memhp Binary files differindex 74ec3b4..74ec3b4 100644 --- a/tests/acpi-test-data/q35/SLIT.memhp +++ b/tests/data/acpi/q35/SLIT.memhp diff --git a/tests/acpi-test-data/q35/SRAT.cphp b/tests/data/acpi/q35/SRAT.cphp Binary files differindex ff21376..ff21376 100644 --- a/tests/acpi-test-data/q35/SRAT.cphp +++ b/tests/data/acpi/q35/SRAT.cphp diff --git a/tests/acpi-test-data/q35/SRAT.dimmpxm b/tests/data/acpi/q35/SRAT.dimmpxm Binary files differindex f5c0267..f5c0267 100644 --- a/tests/acpi-test-data/q35/SRAT.dimmpxm +++ b/tests/data/acpi/q35/SRAT.dimmpxm diff --git a/tests/acpi-test-data/q35/SRAT.memhp b/tests/data/acpi/q35/SRAT.memhp Binary files differindex e508b4a..e508b4a 100644 --- a/tests/acpi-test-data/q35/SRAT.memhp +++ b/tests/data/acpi/q35/SRAT.memhp diff --git a/tests/acpi-test-data/q35/SRAT.numamem b/tests/data/acpi/q35/SRAT.numamem Binary files differindex 119922f..119922f 100644 --- a/tests/acpi-test-data/q35/SRAT.numamem +++ b/tests/data/acpi/q35/SRAT.numamem diff --git a/tests/acpi-test-data/q35/SSDT.dimmpxm b/tests/data/acpi/q35/SSDT.dimmpxm Binary files differindex 2d5b721..2d5b721 100644 --- a/tests/acpi-test-data/q35/SSDT.dimmpxm +++ b/tests/data/acpi/q35/SSDT.dimmpxm diff --git a/tests/acpi-test-data/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh index 11bf743..bf9ba24 100755 --- a/tests/acpi-test-data/rebuild-expected-aml.sh +++ b/tests/data/acpi/rebuild-expected-aml.sh @@ -32,5 +32,3 @@ 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." -echo "However, if new files were created, please copy them manually" \ - "to tests/acpi-test-data/pc/ or tests/acpi-test-data/q35/ ." |