Add a client-side test qemu_iotests
A message that is not in the archive (sent off-list or not yet received): [email protected]
From: root <[email protected]>
---
;-)
Can we get these signed off by a person please? Preferably with a real email address (see the DCO, in top level directory)
Quoted 7 lines · Martin Bligh
From: root<[email protected]>
Signed-off-by 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]
Quoted 3 lines · Yolkfull Chow
Hi Lucas, since the
qemu_ioteststest 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]
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,
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]
Quoted 8 lines · Yolkfull Chow
Signed-off-by Yolkfull Chow <[email protected]>--- 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
Quoted 11 lines · Lucas Meneghel Rodrigues
Quoted 9 lines · Yolkfull Chow
Signed-off-by Yolkfull Chow<[email protected]>--- 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,
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
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 aerror.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,
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 aerror.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,
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.