[virt-tools-list] [PATCH 2/2 virt-what] Add regression test for RHEL 5.7beta Xen HVM guest on IA64 architecture.
Richard W.M. Jones
rjones at redhat.com
Thu May 26 15:07:07 UTC 2011
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
-------------- next part --------------
>From 2d9d8b9e404d831f7aecbea729d87d0db62cec23 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones <rjones at redhat.com>
Date: Thu, 26 May 2011 13:24:56 +0100
Subject: [PATCH 2/2] Add regression test for RHEL 5.7beta Xen HVM guest on
IA64 architecture.
See also:
https://bugzilla.redhat.com/show_bug.cgi?id=707508
Thanks Alexander Todorov for access to the hardware.
---
Makefile.am | 12 ++++
tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo | 60 ++++++++++++++++++++
tests/rhel5-xen-domU-hvm-ia64/proc/self/status | 36 ++++++++++++
tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode | 4 +
tests/rhel5-xen-domU-hvm-ia64/sbin/id | 2 +
tests/rhel5-xen-domU-hvm-ia64/sbin/uname | 2 +
.../sbin/virt-what-cpuid-helper | 2 +
tests/test-rhel5-xen-domU-hvm-ia64.sh | 35 +++++++++++
8 files changed, 153 insertions(+), 0 deletions(-)
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/proc/self/status
create mode 100755 tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode
create mode 100755 tests/rhel5-xen-domU-hvm-ia64/sbin/id
create mode 100755 tests/rhel5-xen-domU-hvm-ia64/sbin/uname
create mode 100755 tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind
create mode 100644 tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe
create mode 100755 tests/test-rhel5-xen-domU-hvm-ia64.sh
diff --git a/Makefile.am b/Makefile.am
index aa97852..2cd99fb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -46,6 +46,7 @@ TESTS = \
tests/test-qemu.sh \
tests/test-rhel5-xen-dom0.sh \
tests/test-rhel5-xen-domU-hvm.sh \
+ tests/test-rhel5-xen-domU-hvm-ia64.sh \
tests/test-rhel5-xen-domU-pv.sh \
tests/test-zvm.sh
@@ -138,6 +139,17 @@ EXTRA_DIST = \
tests/rhel5-xen-domU-hvm/sbin/id \
tests/rhel5-xen-domU-hvm/sbin/uname \
tests/rhel5-xen-domU-hvm/sbin/virt-what-cpuid-helper \
+ tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo \
+ tests/rhel5-xen-domU-hvm-ia64/proc/self/status \
+ tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode \
+ tests/rhel5-xen-domU-hvm-ia64/sbin/id \
+ tests/rhel5-xen-domU-hvm-ia64/sbin/uname \
+ tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper \
+ tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind \
+ tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind \
+ tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind \
+ tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind \
+ tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe \
tests/rhel5-xen-domU-pv/proc/cpuinfo \
tests/rhel5-xen-domU-pv/proc/self/status \
tests/rhel5-xen-domU-pv/proc/xen/balloon \
diff --git a/tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo b/tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo
new file mode 100644
index 0000000..d715a31
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/proc/cpuinfo
@@ -0,0 +1,60 @@
+processor : 0
+vendor : GenuineIntel
+arch : IA-64
+family : Itanium 2
+model : 1
+revision : 1
+archrev : 0
+features : branchlong, 16-byte atomic ops
+cpu number : 0
+cpu regs : 4
+cpu MHz : 1666.000013
+itc MHz : 416.003685
+BogoMIPS : 3252.22
+siblings : 1
+
+processor : 1
+vendor : GenuineIntel
+arch : IA-64
+family : Itanium 2
+model : 1
+revision : 1
+archrev : 0
+features : branchlong, 16-byte atomic ops
+cpu number : 0
+cpu regs : 4
+cpu MHz : 1666.000013
+itc MHz : 416.003685
+BogoMIPS : 3194.88
+siblings : 1
+
+processor : 2
+vendor : GenuineIntel
+arch : IA-64
+family : Itanium 2
+model : 1
+revision : 1
+archrev : 0
+features : branchlong, 16-byte atomic ops
+cpu number : 0
+cpu regs : 4
+cpu MHz : 1666.000013
+itc MHz : 416.003685
+BogoMIPS : 3276.80
+siblings : 1
+
+processor : 3
+vendor : GenuineIntel
+arch : IA-64
+family : Itanium 2
+model : 1
+revision : 1
+archrev : 0
+features : branchlong, 16-byte atomic ops
+cpu number : 0
+cpu regs : 4
+cpu MHz : 1666.000013
+itc MHz : 416.003685
+BogoMIPS : 3260.41
+siblings : 1
+
diff --git a/tests/rhel5-xen-domU-hvm-ia64/proc/self/status b/tests/rhel5-xen-domU-hvm-ia64/proc/self/status
new file mode 100644
index 0000000..dc65757
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/proc/self/status
@@ -0,0 +1,36 @@
+Name: cat
+State: R (running)
+SleepAVG: 88%
+Tgid: 4118
+Pid: 4118
+PPid: 3010
+TracerPid: 0
+Uid: 0 0 0 0
+Gid: 0 0 0 0
+FDSize: 256
+Groups: 0 1 2 3 4 6 10
+VmPeak: 60944 kB
+VmSize: 60944 kB
+VmLck: 0 kB
+VmHWM: 1216 kB
+VmRSS: 1216 kB
+VmData: 224 kB
+VmStk: 352 kB
+VmExe: 32 kB
+VmLib: 2752 kB
+VmPTE: 80 kB
+StaBrk: 600000000000c000 kB
+Brk: 6000000000030000 kB
+StaStk: 60000fffffbdba00 kB
+Threads: 1
+SigQ: 1/1968
+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,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,ffffffff
+Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode b/tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode
new file mode 100755
index 0000000..43e49a2
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/sbin/dmidecode
@@ -0,0 +1,4 @@
+#!/bin/sh -
+echo '# dmidecode 2.11'
+echo '/sys/firmware/efi/systab: SMBIOS entry point missing' >&2
+exit 1
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sbin/id b/tests/rhel5-xen-domU-hvm-ia64/sbin/id
new file mode 100755
index 0000000..6c704ac
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/sbin/id
@@ -0,0 +1,2 @@
+#!/bin/sh -
+echo 0
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sbin/uname b/tests/rhel5-xen-domU-hvm-ia64/sbin/uname
new file mode 100755
index 0000000..e846e59
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/sbin/uname
@@ -0,0 +1,2 @@
+#!/bin/sh -
+echo ia64
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper b/tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper
new file mode 100755
index 0000000..6f928b5
--- /dev/null
+++ b/tests/rhel5-xen-domU-hvm-ia64/sbin/virt-what-cpuid-helper
@@ -0,0 +1,2 @@
+#!/bin/sh -
+# nothing, see https://bugzilla.redhat.com/show_bug.cgi?id=707508
\ No newline at end of file
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind b/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/bind
new file mode 100644
index 0000000..e69de29
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind b/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vbd/unbind
new file mode 100644
index 0000000..e69de29
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind b/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/bind
new file mode 100644
index 0000000..e69de29
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind b/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers/vif/unbind
new file mode 100644
index 0000000..e69de29
diff --git a/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe b/tests/rhel5-xen-domU-hvm-ia64/sys/bus/xen/drivers_probe
new file mode 100644
index 0000000..e69de29
diff --git a/tests/test-rhel5-xen-domU-hvm-ia64.sh b/tests/test-rhel5-xen-domU-hvm-ia64.sh
new file mode 100755
index 0000000..3250652
--- /dev/null
+++ b/tests/test-rhel5-xen-domU-hvm-ia64.sh
@@ -0,0 +1,35 @@
+# Test for RHEL 5 Xen DomU HVM (aka full virtualization) on IA64.
+# 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-domU-hvm-ia64
+
+output="$(./virt-what --test-root=$root 2>&1)"
+expected="xen
+xen-domU"
+
+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.7.5.1
More information about the virt-tools-list
mailing list