From: Christoph Hellwig <hch@lst.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
Date: Tue, 7 Jul 2009 20:03:46 +0200 [thread overview]
Message-ID: <20090707180346.GA6233@lst.de> (raw)
Look for the binary as installed by qemu make install instead of
requiring the qemu symlink. Note that we need a couple of regular
expressions to munge the uname output into the architecture name
qemu expects.
Signed-off-by: Christoph Hellwig <hch@lst.de>
diff --git a/common.config b/common.config
index a594632..0a8d5b4 100644
--- a/common.config
+++ b/common.config
@@ -39,6 +39,16 @@ PATH=".:$PATH"
HOST=`hostname -s`
HOSTOS=`uname -s`
+ARCH=`uname -m | \
+ sed -e s/i.86/x86_64/ \
+ -e s/sun4u/sparc/ \
+ -e s/arm.*/arm/ \
+ -e s/sa110/arm/ \
+ -e s/s390x/s390/ \
+ -e s/parisc.*/hppa/ \
+ -e s/ppc.*/powerpc/ \
+ -e s/mips.*/mips/ \
+ -e s/sh[234].*/sh/`
EMAIL=root@localhost # where auto-qa will send its status messages
export HOST_OPTIONS=${HOST_OPTIONS:=local.config}
@@ -88,7 +98,7 @@ export BC_PROG="`set_prog_path bc`"
export PS_ALL_FLAGS="-ef"
-export QEMU_PROG="`set_prog_path qemu`"
+export QEMU_PROG="`set_prog_path qemu-system-$ARCH`"
[ "$QEMU_PROG" = "" ] && _fatal "qemu not found"
export QEMU_IMG_PROG="`set_prog_path qemu-img`"
next reply other threads:[~2009-07-07 18:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-07 18:03 Christoph Hellwig [this message]
2009-07-08 8:34 ` [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH Kevin Wolf
2009-07-08 10:59 ` Christoph Hellwig
2009-07-08 11:09 ` Kevin Wolf
2009-07-08 11:21 ` Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090707180346.GA6233@lst.de \
--to=hch@lst.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).