qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH
@ 2009-07-07 18:03 Christoph Hellwig
  2009-07-08  8:34 ` Kevin Wolf
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2009-07-07 18:03 UTC (permalink / raw)
  To: qemu-devel

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`"

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-07-08 11:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-07 18:03 [Qemu-devel] [PATCH] qemu-iotests: look for qemu-iotests-$ARCH Christoph Hellwig
2009-07-08  8:34 ` Kevin Wolf
2009-07-08 10:59   ` Christoph Hellwig
2009-07-08 11:09     ` Kevin Wolf
2009-07-08 11:21       ` Christoph Hellwig

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).