* [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths
@ 2011-12-01 13:41 Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 1/2] check: print relevant path information Lucas Meneghel Rodrigues
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2011-12-01 13:41 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, Lucas Meneghel Rodrigues, hch, kvm
In automated test environments, we often build and test
qemu from arbitrary paths, rather than installing them
on standard PATH directories. Of course, appending directories
to PATH might produce the desired result, but making it
possible to specify arbitrary qemu paths through environment
variables is very convenient and minimally intrusive.
So, make it possible to set qemu paths through env
variables, and also, print the paths of the qemu versions
being tested, for clarity sake.
Lucas Meneghel Rodrigues (2):
check: print relevant path information
common.config: Allow use of arbitrary qemu* paths
check | 3 +++
common.config | 12 +++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
--
1.7.7.3
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 1/2] check: print relevant path information
2011-12-01 13:41 [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Lucas Meneghel Rodrigues
@ 2011-12-01 13:41 ` Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 2/2] common.config: Allow use of arbitrary qemu* paths Lucas Meneghel Rodrigues
2011-12-08 16:51 ` [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2011-12-01 13:41 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, Lucas Meneghel Rodrigues, hch, kvm
Print the paths of the programs under test
(qemu, qemu-img and qemu-io).
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
check | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/check b/check
index 84ef3e5..8499a04 100755
--- a/check
+++ b/check
@@ -158,6 +158,9 @@ FULL_HOST_DETAILS=`_full_platform_details`
#FULL_MOUNT_OPTIONS=`_scratch_mount_options`
cat <<EOF
+QEMU -- $QEMU
+QEMU_IMG -- $QEMU_IMG
+QEMU_IO -- $QEMU_IO
IMGFMT -- $FULL_IMGFMT_DETAILS
IMGPROTO -- $FULL_IMGPROTO_DETAILS
PLATFORM -- $FULL_HOST_DETAILS
--
1.7.7.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH 2/2] common.config: Allow use of arbitrary qemu* paths
2011-12-01 13:41 [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 1/2] check: print relevant path information Lucas Meneghel Rodrigues
@ 2011-12-01 13:41 ` Lucas Meneghel Rodrigues
2011-12-08 16:51 ` [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Meneghel Rodrigues @ 2011-12-01 13:41 UTC (permalink / raw)
To: qemu-devel; +Cc: kwolf, Lucas Meneghel Rodrigues, hch, kvm
Since we might want to test arbitrary qemu, qemu-img and
qemu-io paths, allow users to specify environment variable
values for QEMU_PROG, QEMU_IMG_PROG and QEMU_IO_PROG so
the testsuite will use those values rather than find them
on PATH. Obviously, if such env variables are not set
prior to script execution, normal detection mechanism
takes place.
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
---
common.config | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/common.config b/common.config
index d5a72af..d07f435 100644
--- a/common.config
+++ b/common.config
@@ -87,13 +87,19 @@ export BC_PROG="`set_prog_path bc`"
export PS_ALL_FLAGS="-ef"
-export QEMU_PROG="`set_prog_path qemu`"
+if [ -z "$QEMU_PROG" ]; then
+ export QEMU_PROG="`set_prog_path qemu`"
+fi
[ "$QEMU_PROG" = "" ] && _fatal "qemu not found"
-export QEMU_IMG_PROG="`set_prog_path qemu-img`"
+if [ -z "$QEMU_IMG_PROG" ]; then
+ export QEMU_IMG_PROG="`set_prog_path qemu-img`"
+fi
[ "$QEMU_IMG_PROG" = "" ] && _fatal "qemu-img not found"
-export QEMU_IO_PROG="`set_prog_path qemu-io`"
+if [ -z "$QEMU_IO_PROG" ]; then
+ export QEMU_IO_PROG="`set_prog_path qemu-io`"
+fi
[ "$QEMU_IO_PROG" = "" ] && _fatal "qemu-io not found"
export QEMU=$QEMU_PROG
--
1.7.7.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths
2011-12-01 13:41 [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 1/2] check: print relevant path information Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 2/2] common.config: Allow use of arbitrary qemu* paths Lucas Meneghel Rodrigues
@ 2011-12-08 16:51 ` Christoph Hellwig
2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2011-12-08 16:51 UTC (permalink / raw)
To: Lucas Meneghel Rodrigues; +Cc: kwolf, qemu-devel, kvm
Thanks a lot Lucas,
I've applied the patches. And sorry for the delay, I'm pretty busy at the
moment.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-08 16:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 13:41 [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 1/2] check: print relevant path information Lucas Meneghel Rodrigues
2011-12-01 13:41 ` [Qemu-devel] [PATCH 2/2] common.config: Allow use of arbitrary qemu* paths Lucas Meneghel Rodrigues
2011-12-08 16:51 ` [Qemu-devel] [PATCH 0/2] qemu-io tests: More fine grained control of qemu paths 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).