On 10/27/2011 12:28 PM, Wizard wrote: > Experts > > I find KVM autotest is a very fantastic project. It could help a lot > for the testing.
I'm glad you liked it! > While I am wondering how could it interact with the guest. > How to pass the command to the guest and how to gather the result from > the guest. You might look at the KVM autotest documentation: https://github.com/autotest/autotest/wiki/KVMAutotest In special, the writing a new test guide is a place that explain the big picture of KVM autotest https://github.com/autotest/autotest/wiki/KVMAutotest-WritingNewTests Long story short, the framework provides a way to write tests, that are python programs, and the guests live in a thing called 'the environment'. You need to summon a guest object from this environment, and then there are functions to control it. You can control a guest through an SSH session, serial session, send commands in the monitor, among others Invoking a guest vm = env.get_vm("vm1") Opening an SSH session session = vm.wait_for_login() Executing a command on the session object output = session.cmd("ls -l") There's no way I can explain things on this e-mail without writing a big text, so please refer to the docs. > This is a qemu function? No. > If you could point me some reference, I'd appreciate it very much. See above. _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
