From f1f41c090ece413fcaf343b59138fb3906aefd79 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Jan 2011 16:22:48 +0000 Subject: [PATCH] Add regression test for RHEL 5 Xen Dom0. --- Makefile.am | 12 +- tests/rhel5-xen-dom0/proc/cpuinfo | 46 +++ tests/rhel5-xen-dom0/proc/self/status | 36 ++ tests/rhel5-xen-dom0/proc/xen/balloon | 6 + tests/rhel5-xen-dom0/proc/xen/capabilities | 1 + tests/rhel5-xen-dom0/proc/xen/privcmd | 0 tests/rhel5-xen-dom0/proc/xen/xenbus | 0 tests/rhel5-xen-dom0/proc/xen/xsd_kva | 1 + tests/rhel5-xen-dom0/proc/xen/xsd_port | 1 + tests/rhel5-xen-dom0/sbin/dmidecode | 497 +++++++++++++++++++++++ tests/rhel5-xen-dom0/sbin/id | 2 + tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper | 2 + tests/test-rhel5-xen-dom0.sh | 35 ++ 13 files changed, 636 insertions(+), 3 deletions(-) create mode 100644 tests/rhel5-xen-dom0/proc/cpuinfo create mode 100644 tests/rhel5-xen-dom0/proc/self/status create mode 100644 tests/rhel5-xen-dom0/proc/xen/balloon create mode 100644 tests/rhel5-xen-dom0/proc/xen/capabilities create mode 100644 tests/rhel5-xen-dom0/proc/xen/privcmd create mode 100644 tests/rhel5-xen-dom0/proc/xen/xenbus create mode 100644 tests/rhel5-xen-dom0/proc/xen/xsd_kva create mode 100644 tests/rhel5-xen-dom0/proc/xen/xsd_port create mode 100755 tests/rhel5-xen-dom0/sbin/dmidecode create mode 100755 tests/rhel5-xen-dom0/sbin/id create mode 100755 tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper create mode 100755 tests/test-rhel5-xen-dom0.sh diff --git a/Makefile.am b/Makefile.am index 43dc91e..f6750ba 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,10 +38,16 @@ EXTRA_DIST = \ tests/qemu/sbin/dmidecode \ tests/qemu/sbin/id \ tests/qemu/sbin/virt-what-cpuid-helper \ + tests/rhel5-xen-dom0/proc/cpuinfo \ + tests/rhel5-xen-dom0/proc/self/status \ + tests/rhel5-xen-dom0/sbin/dmidecode \ + tests/rhel5-xen-dom0/sbin/id \ + tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper \ tests/test-baremetal.sh \ tests/test-esx4.1.sh \ tests/test-kvm.sh \ - tests/test-qemu.sh + tests/test-qemu.sh \ + tests/test-rhel5-xen-dom0.sh CLEANFILES = virt-what.1 virt-what.txt @@ -63,7 +69,7 @@ TESTS = \ tests/test-baremetal.sh \ tests/test-esx4.1.sh \ tests/test-kvm.sh \ - tests/test-qemu.sh + tests/test-qemu.sh \ + tests/test-rhel5-xen-dom0.sh # tests/test-virtualbox.sh \ -# tests/test-xen-dom0.sh \ # tests/test-xen-domU.sh diff --git a/tests/rhel5-xen-dom0/proc/cpuinfo b/tests/rhel5-xen-dom0/proc/cpuinfo new file mode 100644 index 0000000..f905aee --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/cpuinfo @@ -0,0 +1,46 @@ +processor : 0 +vendor_id : GenuineIntel +cpu family : 6 +model : 15 +model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz +stepping : 6 +cpu MHz : 1000.000 +cache size : 4096 KB +physical id : 0 +siblings : 1 +core id : 0 +cpu cores : 1 +fpu : yes +fpu_exception : yes +cpuid level : 10 +wp : yes +flags : fpu tsc msr pae cx8 apic mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni vmx est ssse3 cx16 lahf_lm +bogomips : 5820.45 +clflush size : 64 +cache_alignment : 64 +address sizes : 36 bits physical, 48 bits virtual +power management: + +processor : 1 +vendor_id : GenuineIntel +cpu family : 6 +model : 15 +model name : Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz +stepping : 6 +cpu MHz : 1000.000 +cache size : 4096 KB +physical id : 1 +siblings : 1 +core id : 0 +cpu cores : 1 +fpu : yes +fpu_exception : yes +cpuid level : 10 +wp : yes +flags : fpu tsc msr pae cx8 apic mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni vmx est ssse3 cx16 lahf_lm +bogomips : 5820.45 +clflush size : 64 +cache_alignment : 64 +address sizes : 36 bits physical, 48 bits virtual +power management: + diff --git a/tests/rhel5-xen-dom0/proc/self/status b/tests/rhel5-xen-dom0/proc/self/status new file mode 100644 index 0000000..756dd39 --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/self/status @@ -0,0 +1,36 @@ +Name: cat +State: R (running) +SleepAVG: 88% +Tgid: 5385 +Pid: 5385 +PPid: 5250 +TracerPid: 0 +Uid: 0 0 0 0 +Gid: 0 0 0 0 +FDSize: 256 +Groups: 0 1 2 3 4 6 10 +VmPeak: 58928 kB +VmSize: 58928 kB +VmLck: 0 kB +VmHWM: 532 kB +VmRSS: 532 kB +VmData: 180 kB +VmStk: 88 kB +VmExe: 20 kB +VmLib: 1448 kB +VmPTE: 28 kB +StaBrk: 00605000 kB +Brk: 05270000 kB +StaStk: 7fff764b41c0 kB +Threads: 1 +SigQ: 1/13910 +SigPnd: 0000000000000000 +ShdPnd: 0000000000000000 +SigBlk: 0000000000000000 +SigIgn: 0000000000000000 +SigCgt: 0000000000000000 +CapInh: 0000000000000000 +CapPrm: 00000000fffffeff +CapEff: 00000000fffffeff +Cpus_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000003 +Mems_allowed: 1 diff --git a/tests/rhel5-xen-dom0/proc/xen/balloon b/tests/rhel5-xen-dom0/proc/xen/balloon new file mode 100644 index 0000000..246d76a --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/xen/balloon @@ -0,0 +1,6 @@ +Current allocation: 1772544 kB +Requested target: 1772544 kB +Low-mem balloon: 1344 kB +High-mem balloon: 0 kB +Driver pages: 1024 kB +Xen hard limit: ??? kB diff --git a/tests/rhel5-xen-dom0/proc/xen/capabilities b/tests/rhel5-xen-dom0/proc/xen/capabilities new file mode 100644 index 0000000..9840a3a --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/xen/capabilities @@ -0,0 +1 @@ +control_d diff --git a/tests/rhel5-xen-dom0/proc/xen/privcmd b/tests/rhel5-xen-dom0/proc/xen/privcmd new file mode 100644 index 0000000..e69de29 diff --git a/tests/rhel5-xen-dom0/proc/xen/xenbus b/tests/rhel5-xen-dom0/proc/xen/xenbus new file mode 100644 index 0000000..e69de29 diff --git a/tests/rhel5-xen-dom0/proc/xen/xsd_kva b/tests/rhel5-xen-dom0/proc/xen/xsd_kva new file mode 100644 index 0000000..eecc0e1 --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/xen/xsd_kva @@ -0,0 +1 @@ +0xffff88006bb04000 \ No newline at end of file diff --git a/tests/rhel5-xen-dom0/proc/xen/xsd_port b/tests/rhel5-xen-dom0/proc/xen/xsd_port new file mode 100644 index 0000000..c793025 --- /dev/null +++ b/tests/rhel5-xen-dom0/proc/xen/xsd_port @@ -0,0 +1 @@ +7 \ No newline at end of file diff --git a/tests/rhel5-xen-dom0/sbin/dmidecode b/tests/rhel5-xen-dom0/sbin/dmidecode new file mode 100755 index 0000000..d182011 --- /dev/null +++ b/tests/rhel5-xen-dom0/sbin/dmidecode @@ -0,0 +1,497 @@ +#!/bin/sh - +cat <<'EOF' +# dmidecode 2.10 +SMBIOS 2.4 present. +40 structures occupying 1532 bytes. +Table at 0x000E0000. + +Handle 0x0000, DMI type 0, 24 bytes +BIOS Information + Vendor: Apple Inc. + Version: MBP21.88Z.00A5.B08.0802291403 + Release Date: 02/29/08 + ROM Size: 2048 kB + Characteristics: + PCI is supported + BIOS is upgradeable + BIOS shadowing is allowed + Boot from CD is supported + Selectable boot is supported + ACPI is supported + IEEE 1394 boot is supported + Smart battery is supported + Function key-initiated network boot is supported + BIOS Revision: 0.1 + +Handle 0x0001, DMI type 1, 27 bytes +System Information + Manufacturer: Apple Computer, Inc. + Product Name: MacBookPro2,1 + Version: 1.0 + Serial Number: W871211LW0M + UUID: 0A85A693-D841-4D4B-90A6-8D89E43E9A35 + Wake-up Type: Power Switch + SKU Number: System SKUNumber + Family: MacBook Pro + +Handle 0x0002, DMI type 2, 16 bytes +Base Board Information + Manufacturer: Apple Computer, Inc. + Product Name: Mac-F42189C8 + Version: PVT + Serial Number: 1 + Asset Tag: Base Board Asset Tag + Features: + Board is a hosting board + Board is replaceable + Location In Chassis: Part Component + Chassis Handle: 0x0003 + Type: Unknown + Contained Object Handles: 0 + +Handle 0x0003, DMI type 3, 21 bytes +Chassis Information + Manufacturer: Apple Inc. + Type: Portable + Lock: Not Present + Version: Mac-F42189C8 + Serial Number: W871211LW0M + Asset Tag: Asset Tag + Boot-up State: Safe + Power Supply State: Safe + Thermal State: Other + Security Status: Other + OEM Information: 0x00000000 + Height: Unspecified + Number Of Power Cords: Unspecified + Contained Elements: 0 + +Handle 0x0004, DMI type 32, 20 bytes +System Boot Information + Status: No errors detected + +Handle 0x0005, DMI type 13, 22 bytes +BIOS Language Information + Installable Languages: 1 + + Currently Installed Language: Not Specified + +Handle 0x0106, DMI type 12, 5 bytes +System Configuration Options + +Handle 0x0107, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: DVI + External Connector Type: Other + Port Type: Video Port + +Handle 0x0108, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: USBB + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x0109, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: USBA + External Connector Type: Access Bus (USB) + Port Type: USB + +Handle 0x010A, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: 1394A + External Connector Type: IEEE 1394 + Port Type: Firewire (IEEE P1394) + +Handle 0x010B, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: Audio Out + External Connector Type: Mini Jack (headphones) + Port Type: Audio Port + +Handle 0x010C, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: Microphone + External Connector Type: Mini Jack (headphones) + Port Type: Audio Port + +Handle 0x010D, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: RJ-45 + External Connector Type: RJ-45 + Port Type: Network Port + +Handle 0x010E, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: PCI-Express Mini Card + External Connector Type: Other + Port Type: Other + +Handle 0x010F, DMI type 8, 9 bytes +Port Connector Information + Internal Reference Designator: None + Internal Connector Type: None + External Reference Designator: Digital Battery + External Connector Type: Other + Port Type: Other + +Handle 0x0110, DMI type 9, 13 bytes +System Slot Information + Designation: Airport + Type: x1 PCI Express + Current Usage: Available + Length: Short + ID: 2 + Characteristics: + 3.3 V is provided + Hot-plug devices are supported + SMBus signal is supported + +Handle 0x0111, DMI type 9, 13 bytes +System Slot Information + Designation: ExpressCard + Type: x1 PCI Express + Current Usage: Available + Length: Short + ID: 3 + Characteristics: + 3.3 V is provided + Hot-plug devices are supported + SMBus signal is supported + +Handle 0x0112, DMI type 10, 6 bytes +On Board Device Information + Type: Video + Status: Enabled + Description: ATI M56 Video + +Handle 0x0113, DMI type 10, 6 bytes +On Board Device Information + Type: Sound + Status: Enabled + Description: Azalia Audio Codec + +Handle 0x0114, DMI type 10, 6 bytes +On Board Device Information + Type: Ethernet + Status: Enabled + Description: Yukon Ethernet Controller + +Handle 0x0115, DMI type 10, 6 bytes +On Board Device Information + Type: Other + Status: Enabled + Description: Sata + +Handle 0x0116, DMI type 10, 6 bytes +On Board Device Information + Type: Other + Status: Enabled + Description: Pata + +Handle 0x0117, DMI type 10, 6 bytes +On Board Device Information + Type: Other + Status: Enabled + Description: Sudden Motion Sensor + +Handle 0x0118, DMI type 136, 6 bytes +OEM-specific Type + Header and Data: + 88 06 18 01 00 00 + +Handle 0x0119, DMI type 4, 35 bytes +Processor Information + Socket Designation: U2E1 + Type: Central Processor + Family: Unknown + Manufacturer: Intel(R) Corporation + ID: F6 06 00 00 FF FB EB BF + Signature: Type 0, Family 6, Model 15, Stepping 6 + Flags: + FPU (Floating-point unit on-chip) + VME (Virtual mode extension) + DE (Debugging extension) + PSE (Page size extension) + TSC (Time stamp counter) + MSR (Model specific registers) + PAE (Physical address extension) + MCE (Machine check exception) + CX8 (CMPXCHG8 instruction supported) + APIC (On-chip APIC hardware supported) + SEP (Fast system call) + MTRR (Memory type range registers) + PGE (Page global enable) + MCA (Machine check architecture) + CMOV (Conditional move instruction supported) + PAT (Page attribute table) + PSE-36 (36-bit page size extension) + CLFSH (CLFLUSH instruction supported) + DS (Debug store) + ACPI (ACPI supported) + MMX (MMX technology supported) + FXSR (Fast floating-point save and restore) + SSE (Streaming SIMD extensions) + SSE2 (Streaming SIMD extensions 2) + SS (Self-snoop) + HTT (Hyper-threading technology) + TM (Thermal monitor supported) + PBE (Pending break enabled) + Version: Intel(R) Core(TM)2 CPU + Voltage: 1.6 V + External Clock: 166 MHz + Max Speed: 2330 MHz + Current Speed: 2330 MHz + Status: Populated, Enabled + Upgrade: ZIF Socket + L1 Cache Handle: 0x011C + L2 Cache Handle: 0x011A + L3 Cache Handle: Not Provided + Serial Number: Not Specified + Asset Tag: Unknown + Part Number: Not Specified + +Handle 0x011A, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 2 + Operational Mode: Write Back + Location: Internal + Installed Size: 4096 kB + Maximum Size: 4096 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Unified + Associativity: 16-way Set-associative + +Handle 0x011B, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 32 kB + Maximum Size: 32 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Instruction + Associativity: 8-way Set-associative + +Handle 0x011C, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 32 kB + Maximum Size: 32 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Data + Associativity: 8-way Set-associative + +Handle 0x011D, DMI type 4, 35 bytes +Processor Information + Socket Designation: U2E1 + Type: Central Processor + Family: Unknown + Manufacturer: Intel(R) Corporation + ID: F6 06 00 00 FF FB EB BF + Signature: Type 0, Family 6, Model 15, Stepping 6 + Flags: + FPU (Floating-point unit on-chip) + VME (Virtual mode extension) + DE (Debugging extension) + PSE (Page size extension) + TSC (Time stamp counter) + MSR (Model specific registers) + PAE (Physical address extension) + MCE (Machine check exception) + CX8 (CMPXCHG8 instruction supported) + APIC (On-chip APIC hardware supported) + SEP (Fast system call) + MTRR (Memory type range registers) + PGE (Page global enable) + MCA (Machine check architecture) + CMOV (Conditional move instruction supported) + PAT (Page attribute table) + PSE-36 (36-bit page size extension) + CLFSH (CLFLUSH instruction supported) + DS (Debug store) + ACPI (ACPI supported) + MMX (MMX technology supported) + FXSR (Fast floating-point save and restore) + SSE (Streaming SIMD extensions) + SSE2 (Streaming SIMD extensions 2) + SS (Self-snoop) + HTT (Hyper-threading technology) + TM (Thermal monitor supported) + PBE (Pending break enabled) + Version: Intel(R) Core(TM)2 CPU + Voltage: 1.6 V + External Clock: 166 MHz + Max Speed: 2330 MHz + Current Speed: 2330 MHz + Status: Populated, Enabled + Upgrade: ZIF Socket + L1 Cache Handle: 0x0120 + L2 Cache Handle: 0x011E + L3 Cache Handle: Not Provided + Serial Number: Not Specified + Asset Tag: Unknown + Part Number: Not Specified + +Handle 0x011E, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 2 + Operational Mode: Write Back + Location: Internal + Installed Size: 4096 kB + Maximum Size: 4096 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Unified + Associativity: 16-way Set-associative + +Handle 0x011F, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 32 kB + Maximum Size: 32 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Instruction + Associativity: 8-way Set-associative + +Handle 0x0120, DMI type 7, 19 bytes +Cache Information + Socket Designation: Unknown + Configuration: Enabled, Not Socketed, Level 1 + Operational Mode: Write Back + Location: Internal + Installed Size: 32 kB + Maximum Size: 32 kB + Supported SRAM Types: + Asynchronous + Installed SRAM Type: Asynchronous + Speed: Unknown + Error Correction Type: Single-bit ECC + System Type: Data + Associativity: 8-way Set-associative + +Handle 0x0121, DMI type 16, 15 bytes +Physical Memory Array + Location: System Board Or Motherboard + Use: System Memory + Error Correction Type: None + Maximum Capacity: 4 GB + Error Information Handle: Not Provided + Number Of Devices: 2 + +Handle 0x0122, DMI type 17, 27 bytes +Memory Device + Array Handle: 0x0121 + Error Information Handle: No Error + Total Width: 64 bits + Data Width: 64 bits + Size: 1024 MB + Form Factor: DIMM + Set: None + Locator: DIMM0 + Bank Locator: BANK 0 + Type: DDR2 + Type Detail: Synchronous + Speed: 667 MHz + Manufacturer: 0x7F7F7F0B00000000 + Serial Number: 0x4D5ACC17 + Asset Tag: Unknown + Part Number: 0x4E5431475436345538484230424E2D334320 + +Handle 0x0123, DMI type 20, 19 bytes +Memory Device Mapped Address + Starting Address: 0x00000000000 + Ending Address: 0x0003FFFFFFF + Range Size: 1 GB + Physical Device Handle: 0x0122 + Memory Array Mapped Address Handle: 0x0126 + Partition Row Position: 1 + Interleave Position: 1 + Interleaved Data Depth: 1 + +Handle 0x0124, DMI type 17, 27 bytes +Memory Device + Array Handle: 0x0121 + Error Information Handle: No Error + Total Width: 64 bits + Data Width: 64 bits + Size: 1024 MB + Form Factor: DIMM + Set: None + Locator: DIMM1 + Bank Locator: BANK 1 + Type: DDR2 + Type Detail: Synchronous + Speed: 667 MHz + Manufacturer: 0x7F7F7F0B00000000 + Serial Number: 0xA14ACC11 + Asset Tag: Unknown + Part Number: 0x4E5431475436345538484230424E2D334320 + +Handle 0x0125, DMI type 20, 19 bytes +Memory Device Mapped Address + Starting Address: 0x00040000000 + Ending Address: 0x0007FFFFFFF + Range Size: 1 GB + Physical Device Handle: 0x0124 + Memory Array Mapped Address Handle: 0x0126 + Partition Row Position: 2 + Interleave Position: 2 + Interleaved Data Depth: 1 + +Handle 0x0126, DMI type 19, 15 bytes +Memory Array Mapped Address + Starting Address: 0x00000000000 + Ending Address: 0x0007FFFFFFF + Range Size: 2 GB + Physical Array Handle: 0x0121 + Partition Width: 0 + +Handle 0xFFFD, DMI type 127, 4 bytes +End Of Table + +EOF diff --git a/tests/rhel5-xen-dom0/sbin/id b/tests/rhel5-xen-dom0/sbin/id new file mode 100755 index 0000000..6c704ac --- /dev/null +++ b/tests/rhel5-xen-dom0/sbin/id @@ -0,0 +1,2 @@ +#!/bin/sh - +echo 0 diff --git a/tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper b/tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper new file mode 100755 index 0000000..b446009 --- /dev/null +++ b/tests/rhel5-xen-dom0/sbin/virt-what-cpuid-helper @@ -0,0 +1,2 @@ +#!/bin/sh - +echo diff --git a/tests/test-rhel5-xen-dom0.sh b/tests/test-rhel5-xen-dom0.sh new file mode 100755 index 0000000..6571ecd --- /dev/null +++ b/tests/test-rhel5-xen-dom0.sh @@ -0,0 +1,35 @@ +# Test for RHEL 5 Xen Dom0. +# Copyright (C) 2008-2011 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +root=tests/rhel5-xen-dom0 + +output="$(./virt-what --test-root=$root 2>&1)" +expected="xen +xen-dom0" + +if [ "$output" != "$expected" ]; then + echo "$0: test failed because output did not match expected" + echo "Expected output was:" + echo "----------------------------------------" + echo "$expected" + echo "----------------------------------------" + echo "But the actual output of the program was:" + echo "----------------------------------------" + echo "$output" + echo "----------------------------------------" + exit 1 +fi -- 1.8.3.1