[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 8/9] qemu-iotests: Use ppc64 qemu_arch on ppc64le hos
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] [PULL 8/9] qemu-iotests: Use ppc64 qemu_arch on ppc64le host |
Date: |
Tue, 3 Apr 2018 18:33:59 +0200 |
From: Lukáš Doktor <address@hidden>
The qemu target does not always correspond to the host machine type. For
example ppc64le machine target is ppc64. Let's introduce "qemu_arch"
variable to store the matching qemu architecture related to the current
architecture and use it when auto-detecting the default qemu binary.
Signed-off-by: Lukáš Doktor <address@hidden>
Message-id: address@hidden
Signed-off-by: Max Reitz <address@hidden>
---
tests/qemu-iotests/check | 4 ++--
tests/qemu-iotests/common.config | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/check b/tests/qemu-iotests/check
index ec8033350d..aa94c6c7ea 100755
--- a/tests/qemu-iotests/check
+++ b/tests/qemu-iotests/check
@@ -538,8 +538,8 @@ if [ -z "$QEMU_PROG" ]
then
if [ -x "$build_iotests/qemu" ]; then
export QEMU_PROG="$build_iotests/qemu"
- elif [ -x "$build_root/$arch-softmmu/qemu-system-$arch" ]; then
- export QEMU_PROG="$build_root/$arch-softmmu/qemu-system-$arch"
+ elif [ -x "$build_root/${qemu_arch}-softmmu/qemu-system-${qemu_arch}" ];
then
+ export
QEMU_PROG="$build_root/${qemu_arch}-softmmu/qemu-system-${qemu_arch}"
else
pushd "$build_root" > /dev/null
for binary in *-softmmu/qemu-system-*
diff --git a/tests/qemu-iotests/common.config b/tests/qemu-iotests/common.config
index cdcda54546..102aa6878a 100644
--- a/tests/qemu-iotests/common.config
+++ b/tests/qemu-iotests/common.config
@@ -23,6 +23,7 @@ PATH=".:$PATH"
HOSTOS=`uname -s`
arch=`uname -m`
+[[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch"
export PWD=`pwd`
--
2.13.6
- [Qemu-devel] [PULL 0/9] Block layer patches for 2.12.0-rc2, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 1/9] gluster: Fix blockdev-add with server.N.type=unix, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 3/9] iotests: Update 051 and 186 after commit 1454509726719e0933c, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 7/9] iotests: Test preallocated truncate of 2G image, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 5/9] iotests: fix 208 for luks format, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 4/9] iotests: Update 186 after commit ac64273c66ab136c44043259162, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 8/9] qemu-iotests: Use ppc64 qemu_arch on ppc64le host,
Kevin Wolf <=
- [Qemu-devel] [PULL 2/9] block: handle invalid lseek returns gracefully, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 6/9] block/file-posix: Fix fully preallocated truncate, Kevin Wolf, 2018/04/03
- [Qemu-devel] [PULL 9/9] iotests: Test abnormally large size in compressed cluster descriptor, Kevin Wolf, 2018/04/03
- Re: [Qemu-devel] [PULL 0/9] Block layer patches for 2.12.0-rc2, Peter Maydell, 2018/04/04