summaryrefslogtreecommitdiffstats
path: root/tests/kvm/sbin
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-01-18 17:36:30 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-01-18 17:36:46 +0000
commit45623caae6166fe7d0ce7ef396b9b58795bcfe6d (patch)
treefa3e25c9b947aebd8dee0acef81514fe6f9075dd /tests/kvm/sbin
parentda0de94a68c0ca9c40f70dcf9123c4253e1d5664 (diff)
downloadvirt-what-45623caae6166fe7d0ce7ef396b9b58795bcfe6d.tar.gz
virt-what-45623caae6166fe7d0ce7ef396b9b58795bcfe6d.tar.xz
virt-what-45623caae6166fe7d0ce7ef396b9b58795bcfe6d.zip
Add tests for KVM and QEMU.
The data is taken from a RHEL 6.0 guest running on a Fedora 14 host (x86_64 in both cases), using qemu-kvm and qemu-system-x86_64 respectively. qemu-kvm-0.13.0-1.fc14.x86_64 qemu-system-x86-0.13.0-1.fc14.x86_64
Diffstat (limited to 'tests/kvm/sbin')
-rwxr-xr-xtests/kvm/sbin/dmidecode113
-rwxr-xr-xtests/kvm/sbin/id2
-rwxr-xr-xtests/kvm/sbin/virt-what-cpuid-helper2
3 files changed, 117 insertions, 0 deletions
diff --git a/tests/kvm/sbin/dmidecode b/tests/kvm/sbin/dmidecode
new file mode 100755
index 0000000..fd8b76e
--- /dev/null
+++ b/tests/kvm/sbin/dmidecode
@@ -0,0 +1,113 @@
+#!/bin/sh -
+cat <<'EOF'
+# dmidecode 2.10
+SMBIOS 2.4 present.
+10 structures occupying 263 bytes.
+Table at 0x3FFFFEF0.
+
+Handle 0x0000, DMI type 0, 24 bytes
+BIOS Information
+ Vendor: Bochs
+ Version: Bochs
+ Release Date: 01/01/2007
+ Address: 0xE8000
+ Runtime Size: 96 kB
+ ROM Size: 64 kB
+ Characteristics:
+ BIOS characteristics not supported
+ Targeted content distribution is supported
+ BIOS Revision: 1.0
+
+Handle 0x0100, DMI type 1, 27 bytes
+System Information
+ Manufacturer: Bochs
+ Product Name: Bochs
+ Version: Not Specified
+ Serial Number: Not Specified
+ UUID: 7061F170-D1CF-6F48-6770-984E8D171011
+ Wake-up Type: Power Switch
+ SKU Number: Not Specified
+ Family: Not Specified
+
+Handle 0x0300, DMI type 3, 20 bytes
+Chassis Information
+ Manufacturer: Bochs
+ Type: Other
+ Lock: Not Present
+ Version: Not Specified
+ Serial Number: Not Specified
+ Asset Tag: Not Specified
+ Boot-up State: Safe
+ Power Supply State: Safe
+ Thermal State: Safe
+ Security Status: Unknown
+ OEM Information: 0x00000000
+ Height: Unspecified
+ Number Of Power Cords: Unspecified
+
+Handle 0x0401, DMI type 4, 32 bytes
+Processor Information
+ Socket Designation: CPU01
+ Type: Central Processor
+ Family: Other
+ Manufacturer: Bochs
+ ID: 23 06 00 00 FD FB 8B 07
+ Version: Not Specified
+ Voltage: Unknown
+ External Clock: Unknown
+ Max Speed: 2000 MHz
+ Current Speed: 2000 MHz
+ Status: Populated, Enabled
+ Upgrade: Other
+ L1 Cache Handle: Not Provided
+ L2 Cache Handle: Not Provided
+ L3 Cache Handle: Not Provided
+
+Handle 0x1000, DMI type 16, 15 bytes
+Physical Memory Array
+ Location: Other
+ Use: System Memory
+ Error Correction Type: Multi-bit ECC
+ Maximum Capacity: 1 GB
+ Error Information Handle: Not Provided
+ Number Of Devices: 1
+
+Handle 0x1100, DMI type 17, 21 bytes
+Memory Device
+ Array Handle: 0x1000
+ Error Information Handle: 0x0000
+ Total Width: 64 bits
+ Data Width: 64 bits
+ Size: 1024 MB
+ Form Factor: DIMM
+ Set: None
+ Locator: DIMM 0
+ Bank Locator: Not Specified
+ Type: RAM
+ Type Detail: None
+
+Handle 0x1300, DMI type 19, 15 bytes
+Memory Array Mapped Address
+ Starting Address: 0x00000000000
+ Ending Address: 0x0003FFFFFFF
+ Range Size: 1 GB
+ Physical Array Handle: 0x1000
+ Partition Width: 0
+
+Handle 0x1400, DMI type 20, 19 bytes
+Memory Device Mapped Address
+ Starting Address: 0x00000000000
+ Ending Address: 0x0003FFFFFFF
+ Range Size: 1 GB
+ Physical Device Handle: 0x1100
+ Memory Array Mapped Address Handle: 0x1300
+ Partition Row Position: 1
+
+Handle 0x2000, DMI type 32, 11 bytes
+System Boot Information
+ Status: No errors detected
+
+Handle 0x7F00, DMI type 127, 4 bytes
+End Of Table
+
+EOF
diff --git a/tests/kvm/sbin/id b/tests/kvm/sbin/id
new file mode 100755
index 0000000..6c704ac
--- /dev/null
+++ b/tests/kvm/sbin/id
@@ -0,0 +1,2 @@
+#!/bin/sh -
+echo 0
diff --git a/tests/kvm/sbin/virt-what-cpuid-helper b/tests/kvm/sbin/virt-what-cpuid-helper
new file mode 100755
index 0000000..f52a9d7
--- /dev/null
+++ b/tests/kvm/sbin/virt-what-cpuid-helper
@@ -0,0 +1,2 @@
+#!/bin/sh -
+echo KVMKVMKVM