summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/acpi/pc/APICbin0 -> 120 bytes
-rw-r--r--tests/data/acpi/pc/APIC.cphpbin0 -> 160 bytes
-rw-r--r--tests/data/acpi/pc/APIC.dimmpxmbin0 -> 144 bytes
-rw-r--r--tests/data/acpi/pc/DSDTbin0 -> 5131 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.bridgebin0 -> 6990 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.cphpbin0 -> 5594 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.dimmpxmbin0 -> 6790 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.ipmikcsbin0 -> 5203 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.memhpbin0 -> 6496 bytes
-rw-r--r--tests/data/acpi/pc/DSDT.numamembin0 -> 5137 bytes
-rw-r--r--tests/data/acpi/pc/FACPbin0 -> 116 bytes
-rw-r--r--tests/data/acpi/pc/FACSbin0 -> 64 bytes
-rw-r--r--tests/data/acpi/pc/HPETbin0 -> 56 bytes
-rw-r--r--tests/data/acpi/pc/NFIT.dimmpxmbin0 -> 240 bytes
-rw-r--r--tests/data/acpi/pc/SLIT.cphpbin0 -> 48 bytes
-rw-r--r--tests/data/acpi/pc/SLIT.memhpbin0 -> 48 bytes
-rw-r--r--tests/data/acpi/pc/SRAT.cphpbin0 -> 304 bytes
-rw-r--r--tests/data/acpi/pc/SRAT.dimmpxmbin0 -> 392 bytes
-rw-r--r--tests/data/acpi/pc/SRAT.memhpbin0 -> 264 bytes
-rw-r--r--tests/data/acpi/pc/SRAT.numamembin0 -> 224 bytes
-rw-r--r--tests/data/acpi/pc/SSDT.dimmpxmbin0 -> 685 bytes
-rw-r--r--tests/data/acpi/q35/APICbin0 -> 120 bytes
-rw-r--r--tests/data/acpi/q35/APIC.cphpbin0 -> 160 bytes
-rw-r--r--tests/data/acpi/q35/APIC.dimmpxmbin0 -> 144 bytes
-rw-r--r--tests/data/acpi/q35/DSDTbin0 -> 7815 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.bridgebin0 -> 7832 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.cphpbin0 -> 8278 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.dimmpxmbin0 -> 9474 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.ipmibtbin0 -> 7890 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.memhpbin0 -> 9180 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.mmio64bin0 -> 8947 bytes
-rw-r--r--tests/data/acpi/q35/DSDT.numamembin0 -> 7821 bytes
-rw-r--r--tests/data/acpi/q35/FACPbin0 -> 244 bytes
-rw-r--r--tests/data/acpi/q35/FACSbin0 -> 64 bytes
-rw-r--r--tests/data/acpi/q35/HPETbin0 -> 56 bytes
-rw-r--r--tests/data/acpi/q35/MCFGbin0 -> 60 bytes
-rw-r--r--tests/data/acpi/q35/NFIT.dimmpxmbin0 -> 240 bytes
-rw-r--r--tests/data/acpi/q35/SLIT.cphpbin0 -> 48 bytes
-rw-r--r--tests/data/acpi/q35/SLIT.memhpbin0 -> 48 bytes
-rw-r--r--tests/data/acpi/q35/SRAT.cphpbin0 -> 304 bytes
-rw-r--r--tests/data/acpi/q35/SRAT.dimmpxmbin0 -> 392 bytes
-rw-r--r--tests/data/acpi/q35/SRAT.memhpbin0 -> 264 bytes
-rw-r--r--tests/data/acpi/q35/SRAT.mmio64bin0 -> 224 bytes
-rw-r--r--tests/data/acpi/q35/SRAT.numamembin0 -> 224 bytes
-rw-r--r--tests/data/acpi/q35/SSDT.dimmpxmbin0 -> 685 bytes
-rwxr-xr-xtests/data/acpi/rebuild-expected-aml.sh34
-rw-r--r--tests/data/hex-loader/test.hex18
47 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/acpi/pc/APIC b/tests/data/acpi/pc/APIC
new file mode 100644
index 0000000000..84509e0ae4
--- /dev/null
+++ b/tests/data/acpi/pc/APIC
Binary files differ
diff --git a/tests/data/acpi/pc/APIC.cphp b/tests/data/acpi/pc/APIC.cphp
new file mode 100644
index 0000000000..1bf8a0a63b
--- /dev/null
+++ b/tests/data/acpi/pc/APIC.cphp
Binary files differ
diff --git a/tests/data/acpi/pc/APIC.dimmpxm b/tests/data/acpi/pc/APIC.dimmpxm
new file mode 100644
index 0000000000..427bb08248
--- /dev/null
+++ b/tests/data/acpi/pc/APIC.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT b/tests/data/acpi/pc/DSDT
new file mode 100644
index 0000000000..c6adfe32d5
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.bridge b/tests/data/acpi/pc/DSDT.bridge
new file mode 100644
index 0000000000..f01fa3ad4e
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.bridge
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.cphp b/tests/data/acpi/pc/DSDT.cphp
new file mode 100644
index 0000000000..3295d81c7f
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.cphp
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.dimmpxm b/tests/data/acpi/pc/DSDT.dimmpxm
new file mode 100644
index 0000000000..f6ec911b11
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.ipmikcs b/tests/data/acpi/pc/DSDT.ipmikcs
new file mode 100644
index 0000000000..2633a8cecf
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.ipmikcs
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.memhp b/tests/data/acpi/pc/DSDT.memhp
new file mode 100644
index 0000000000..e31ef50296
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.memhp
Binary files differ
diff --git a/tests/data/acpi/pc/DSDT.numamem b/tests/data/acpi/pc/DSDT.numamem
new file mode 100644
index 0000000000..71a975b3e2
--- /dev/null
+++ b/tests/data/acpi/pc/DSDT.numamem
Binary files differ
diff --git a/tests/data/acpi/pc/FACP b/tests/data/acpi/pc/FACP
new file mode 100644
index 0000000000..261ebdc5d1
--- /dev/null
+++ b/tests/data/acpi/pc/FACP
Binary files differ
diff --git a/tests/data/acpi/pc/FACS b/tests/data/acpi/pc/FACS
new file mode 100644
index 0000000000..fc67ecc407
--- /dev/null
+++ b/tests/data/acpi/pc/FACS
Binary files differ
diff --git a/tests/data/acpi/pc/HPET b/tests/data/acpi/pc/HPET
new file mode 100644
index 0000000000..df689b8f99
--- /dev/null
+++ b/tests/data/acpi/pc/HPET
Binary files differ
diff --git a/tests/data/acpi/pc/NFIT.dimmpxm b/tests/data/acpi/pc/NFIT.dimmpxm
new file mode 100644
index 0000000000..598d331b75
--- /dev/null
+++ b/tests/data/acpi/pc/NFIT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/pc/SLIT.cphp b/tests/data/acpi/pc/SLIT.cphp
new file mode 100644
index 0000000000..74ec3b4b46
--- /dev/null
+++ b/tests/data/acpi/pc/SLIT.cphp
Binary files differ
diff --git a/tests/data/acpi/pc/SLIT.memhp b/tests/data/acpi/pc/SLIT.memhp
new file mode 100644
index 0000000000..74ec3b4b46
--- /dev/null
+++ b/tests/data/acpi/pc/SLIT.memhp
Binary files differ
diff --git a/tests/data/acpi/pc/SRAT.cphp b/tests/data/acpi/pc/SRAT.cphp
new file mode 100644
index 0000000000..ff2137642f
--- /dev/null
+++ b/tests/data/acpi/pc/SRAT.cphp
Binary files differ
diff --git a/tests/data/acpi/pc/SRAT.dimmpxm b/tests/data/acpi/pc/SRAT.dimmpxm
new file mode 100644
index 0000000000..f5c0267ea2
--- /dev/null
+++ b/tests/data/acpi/pc/SRAT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/pc/SRAT.memhp b/tests/data/acpi/pc/SRAT.memhp
new file mode 100644
index 0000000000..e508b4ae3c
--- /dev/null
+++ b/tests/data/acpi/pc/SRAT.memhp
Binary files differ
diff --git a/tests/data/acpi/pc/SRAT.numamem b/tests/data/acpi/pc/SRAT.numamem
new file mode 100644
index 0000000000..119922f497
--- /dev/null
+++ b/tests/data/acpi/pc/SRAT.numamem
Binary files differ
diff --git a/tests/data/acpi/pc/SSDT.dimmpxm b/tests/data/acpi/pc/SSDT.dimmpxm
new file mode 100644
index 0000000000..8ba0e67cb7
--- /dev/null
+++ b/tests/data/acpi/pc/SSDT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/q35/APIC b/tests/data/acpi/q35/APIC
new file mode 100644
index 0000000000..84509e0ae4
--- /dev/null
+++ b/tests/data/acpi/q35/APIC
Binary files differ
diff --git a/tests/data/acpi/q35/APIC.cphp b/tests/data/acpi/q35/APIC.cphp
new file mode 100644
index 0000000000..1bf8a0a63b
--- /dev/null
+++ b/tests/data/acpi/q35/APIC.cphp
Binary files differ
diff --git a/tests/data/acpi/q35/APIC.dimmpxm b/tests/data/acpi/q35/APIC.dimmpxm
new file mode 100644
index 0000000000..427bb08248
--- /dev/null
+++ b/tests/data/acpi/q35/APIC.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT b/tests/data/acpi/q35/DSDT
new file mode 100644
index 0000000000..7576ffcd05
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.bridge b/tests/data/acpi/q35/DSDT.bridge
new file mode 100644
index 0000000000..c623cc5d72
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.bridge
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.cphp b/tests/data/acpi/q35/DSDT.cphp
new file mode 100644
index 0000000000..7ac526e466
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.cphp
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.dimmpxm b/tests/data/acpi/q35/DSDT.dimmpxm
new file mode 100644
index 0000000000..3837792dec
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.ipmibt b/tests/data/acpi/q35/DSDT.ipmibt
new file mode 100644
index 0000000000..c7f431f058
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.ipmibt
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.memhp b/tests/data/acpi/q35/DSDT.memhp
new file mode 100644
index 0000000000..8fba0baf79
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.memhp
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.mmio64 b/tests/data/acpi/q35/DSDT.mmio64
new file mode 100644
index 0000000000..a058ff2ee3
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.mmio64
Binary files differ
diff --git a/tests/data/acpi/q35/DSDT.numamem b/tests/data/acpi/q35/DSDT.numamem
new file mode 100644
index 0000000000..6c0d4f2bcb
--- /dev/null
+++ b/tests/data/acpi/q35/DSDT.numamem
Binary files differ
diff --git a/tests/data/acpi/q35/FACP b/tests/data/acpi/q35/FACP
new file mode 100644
index 0000000000..72c9d97902
--- /dev/null
+++ b/tests/data/acpi/q35/FACP
Binary files differ
diff --git a/tests/data/acpi/q35/FACS b/tests/data/acpi/q35/FACS
new file mode 100644
index 0000000000..fc67ecc407
--- /dev/null
+++ b/tests/data/acpi/q35/FACS
Binary files differ
diff --git a/tests/data/acpi/q35/HPET b/tests/data/acpi/q35/HPET
new file mode 100644
index 0000000000..df689b8f99
--- /dev/null
+++ b/tests/data/acpi/q35/HPET
Binary files differ
diff --git a/tests/data/acpi/q35/MCFG b/tests/data/acpi/q35/MCFG
new file mode 100644
index 0000000000..79ceb27a03
--- /dev/null
+++ b/tests/data/acpi/q35/MCFG
Binary files differ
diff --git a/tests/data/acpi/q35/NFIT.dimmpxm b/tests/data/acpi/q35/NFIT.dimmpxm
new file mode 100644
index 0000000000..598d331b75
--- /dev/null
+++ b/tests/data/acpi/q35/NFIT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/q35/SLIT.cphp b/tests/data/acpi/q35/SLIT.cphp
new file mode 100644
index 0000000000..74ec3b4b46
--- /dev/null
+++ b/tests/data/acpi/q35/SLIT.cphp
Binary files differ
diff --git a/tests/data/acpi/q35/SLIT.memhp b/tests/data/acpi/q35/SLIT.memhp
new file mode 100644
index 0000000000..74ec3b4b46
--- /dev/null
+++ b/tests/data/acpi/q35/SLIT.memhp
Binary files differ
diff --git a/tests/data/acpi/q35/SRAT.cphp b/tests/data/acpi/q35/SRAT.cphp
new file mode 100644
index 0000000000..ff2137642f
--- /dev/null
+++ b/tests/data/acpi/q35/SRAT.cphp
Binary files differ
diff --git a/tests/data/acpi/q35/SRAT.dimmpxm b/tests/data/acpi/q35/SRAT.dimmpxm
new file mode 100644
index 0000000000..f5c0267ea2
--- /dev/null
+++ b/tests/data/acpi/q35/SRAT.dimmpxm
Binary files differ
diff --git a/tests/data/acpi/q35/SRAT.memhp b/tests/data/acpi/q35/SRAT.memhp
new file mode 100644
index 0000000000..e508b4ae3c
--- /dev/null
+++ b/tests/data/acpi/q35/SRAT.memhp
Binary files differ
diff --git a/tests/data/acpi/q35/SRAT.mmio64 b/tests/data/acpi/q35/SRAT.mmio64
new file mode 100644
index 0000000000..ac35f3dac4
--- /dev/null
+++ b/tests/data/acpi/q35/SRAT.mmio64
Binary files differ
diff --git a/tests/data/acpi/q35/SRAT.numamem b/tests/data/acpi/q35/SRAT.numamem
new file mode 100644
index 0000000000..119922f497
--- /dev/null
+++ b/tests/data/acpi/q35/SRAT.numamem
Binary files differ
diff --git a/tests/data/acpi/q35/SSDT.dimmpxm b/tests/data/acpi/q35/SSDT.dimmpxm
new file mode 100644
index 0000000000..2d5b721bcf
--- /dev/null
+++ b/tests/data/acpi/q35/SSDT.dimmpxm
Binary files differ
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."
diff --git a/tests/data/hex-loader/test.hex b/tests/data/hex-loader/test.hex
new file mode 100644
index 0000000000..008a90bd4d
--- /dev/null
+++ b/tests/data/hex-loader/test.hex
@@ -0,0 +1,18 @@
+:020000040001F9
+:10000000000102030405060708090a0b0c0d0e0f78
+:10001000101112131415161718191a1b1c1d1e1f68
+:10002000202122232425262728292a2b2c2d2e2f58
+:10003000303132333435363738393a3b3c3d3e3f48
+:10004000404142434445464748494a4b4c4d4e4f38
+:10005000505152535455565758595a5b5c5d5e5f28
+:10006000606162636465666768696a6b6c6d6e6f18
+:10007000707172737475767778797a7b7c7d7e7f08
+:10008000808182838485868788898a8b8c8d8e8ff8
+:10009000909192939495969798999a9b9c9d9e9fe8
+:1000a000a0a1a2a3a4a5a6a7a8a9aaabacadaeafd8
+:1000b000b0b1b2b3b4b5b6b7b8b9babbbcbdbebfc8
+:1000c000c0c1c2c3c4c5c6c7c8c9cacbcccdcecfb8
+:1000d000d0d1d2d3d4d5d6d7d8d9dadbdcdddedfa8
+:1000e000e0e1e2e3e4e5e6e7e8e9eaebecedeeef98
+:1000f000f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff88
+:00000001FF