Skip to contentSkip to conversation

Add a client-side test qemu_iotests

PATCH Martin Bligh 3 participants 11 messages Jul 2, 2009 – Jul 6, 2009 5 messages not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 7 lines · Martin Bligh

From: root<[email protected]>

---

Quoted 8 lines

;-)
Can we get these signed off by a person please? Preferably with a real email address (see the DCO, in top level directory)
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Sure. Will re-send it now. :)

Signature · 2 lines
Yolkfull
Regards,

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 3 lines · Yolkfull Chow

Hi Lucas, since the qemu_iotests test suite itself has checked qemu, qemu-img and qemu-io ELF files before running, I would skip the duplicated step.

Fair enough. Making the check on the autotest module would make things more apparent to the user (we would throw a TestFailure with the reason), but I see your point.

Quoted 6 lines

I added 'qemu_path' option for users to specify their alternative PATH containing these ELF files.

Quoted 3 lines
(quoted diff) +3 -0
+        if qemu_path: 
+            os.environ['PATH'] += ":" + qemu_path 
+ 

Good.

Martin, any comments? The test module and the qemu-iotests suite are looking good, can we commit it?

Lucas

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw
Quoted 1 line · sudhir kumar

Please send the tarball as a separate attachment. Your email is scary.

OK, I will resend the patch. Sorry for this scary email. :)

Signature · 2 lines
Yolkfull
Regards,
#8 lore raw
Quoted 3 lines · Yolkfull Chow
Quoted 1 line · sudhir kumar

Please send the tarball as a separate attachment. Your email is scary.

OK, I will resend the patch. Sorry for this scary email. :)

We usually send binary files as attachments instead of binary diffs just for the sake of clarity. No need to apologize though :)

Lucas

A message that is not in the archive (sent off-list or not yet received): [email protected]

#10 lore raw
Quoted 8 lines · Yolkfull Chow
---
  client/tests/qemu_iotests/control         |   31 ++++++++++++++
  client/tests/qemu_iotests/qemu_iotests.py |   63 
+++++++++++++++++++++++++++++
  2 files changed, 94 insertions(+), 0 deletions(-)

create mode 100644 client/tests/qemu_iotests/control create mode 100755 client/tests/qemu_iotests/qemu_iotests.py

Ok, I've been trough the test and took a look at the testsuite itself. Both look good. The testsuite requires a very current qemu-img package, due to the use of qemu-io (F11 for instance doesn't ship it). So if you want to try this make sure you use a current version of the kvm utilities.

+1

Lucas

#11 lore raw
Quoted 11 lines · Lucas Meneghel Rodrigues
Quoted 9 lines · Yolkfull Chow
---
   client/tests/qemu_iotests/control         |   31 ++++++++++++++
   client/tests/qemu_iotests/qemu_iotests.py |   63
+++++++++++++++++++++++++++++
   2 files changed, 94 insertions(+), 0 deletions(-)

create mode 100644 client/tests/qemu_iotests/control create mode 100755 client/tests/qemu_iotests/qemu_iotests.py

Quoted 6 lines

Ok, I've been trough the test and took a look at the testsuite itself. Both look good. The testsuite requires a very current qemu-img package, due to the use of qemu-io (F11 for instance doesn't ship it). So if you want to try this make sure you use a current version of the kvm utilities.

I had compiled upstream qemu codes and run this test based on it, worked fine though two cases failed for some reason.

Quoted 9 lines

+1

Lucas

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Yolkfull
Regards,
#12 lore raw
In reply to Lucas Meneghel Rodrigues
Quoted 5 lines · Lucas Meneghel Rodrigues

Ok, I've been trough the test and took a look at the testsuite itself. Both look good. The testsuite requires a very current qemu-img package, due to the use of qemu-io (F11 for instance doesn't ship it). So if you want to try this make sure you use a current version of the kvm utilities.

It just occurred to me some suggestions based on my last comment:
* Make sure we have the qemu, qemu-img and the qemu-io ELF files
available to execute the test suite, and if we doesn't, raise a error.TestError() exception.
* Make it possible to specify an alternate prefix to look for those
ELFs, and make sure the test suite can find them (ie, appending the path to os.environ['PATH']).

Yolkfull, please take a look at implementing those suggestions.

Thanks again for your work!

Lucas

#13 lore raw
Quoted 16 lines · Lucas Meneghel Rodrigues
Quoted 6 lines · Lucas Meneghel Rodrigues

Ok, I've been trough the test and took a look at the testsuite itself. Both look good. The testsuite requires a very current qemu-img package, due to the use of qemu-io (F11 for instance doesn't ship it). So if you want to try this make sure you use a current version of the kvm utilities.

It just occurred to me some suggestions based on my last comment:
* Make sure we have the qemu, qemu-img and the qemu-io ELF files
available to execute the test suite, and if we doesn't, raise a error.TestError() exception.
* Make it possible to specify an alternate prefix to look for those
ELFs, and make sure the test suite can find them (ie, appending the path to os.environ['PATH']).

Quoted 7 lines

Yolkfull, please take a look at implementing those suggestions.

Thanks again for your work!

Lucas

Lucas, OK, I really forgot to set the PATH of 'qemu', 'qemu-img' and 'qemu-io'. I will do modifications according to your wonderful suggestions.

Thank you so much! :-)

Signature · 2 lines
Yolkfull
Regards,
#14 lore raw
In reply to Lucas Meneghel Rodrigues
Quoted 8 lines · Lucas Meneghel Rodrigues
Quoted 6 lines · Lucas Meneghel Rodrigues

Ok, I've been trough the test and took a look at the testsuite itself. Both look good. The testsuite requires a very current qemu-img package, due to the use of qemu-io (F11 for instance doesn't ship it). So if you want to try this make sure you use a current version of the kvm utilities.

Quoted 5 lines

It just occurred to me some suggestions based on my last comment:
* Make sure we have the qemu, qemu-img and the qemu-io ELF files
available to execute the test suite, and if we doesn't, raise a error.TestError() exception.

I modified.

Quoted 4 lines

* Make it possible to specify an alternate prefix to look for those
ELFs, and make sure the test suite can find them (ie, appending the path to os.environ['PATH']).

Lucas, do we really need to find those ELFs within the whole disk if they are not in os.environ['PATH']? That's not testsuite's purpose I think.

What's your opinion?

Quoted 7 lines

Yolkfull, please take a look at implementing those suggestions.

Thanks again for your work!

Lucas

Signature · 2 lines
Yolkfull
Regards,
#15 lore raw
Quoted 5 lines · Yolkfull Chow

Lucas, do we really need to find those ELFs within the whole disk if they are not in os.environ['PATH']? That's not testsuite's purpose I think.

What's your opinion?

Sure it's not. My point was just to allow the user to provide an additional path (say self.srcdir or something like that) that could be added to the environmental variable PATH. This would be useful if we build/install the ELFs under a non standard location on a previous test. No need to walk through the entire filesystem to find the binaries.