On 07/24/2012 12:14 PM, Thomas Jarosch wrote: > Hey there, > > we want to test several subsystems of a custom Linux distro. > > What we managed so far: > - Automatically install the distribution > via autotest's KVM module using a "steps" file. > - Run "uptime" test on the installed machine. > > > Now we are thinking about the overall client/server structure: > > Let's say we have 20 testcases that ensure the mailserver > of this linux distribution is behaving as it should. > And maybe another 20 tests that validate some other subsystem. > > Ideally we would like to create a lvm snapshot after the installation, > boot the VM, execute the mailserver tests and revert back to the snapshot. > This cycle repeats for the other subsystem tests. > > The basic "problem" is that the running virtual machine > is already an autotest client. Or am I mixing things up here?
The whole story is: a virtual machine running as part of the kvm test can also run autotest client tests, check the variants named 'autotest' in subtests.cfg.sample. But, we usually wouldn't call that an autotest 'client', because that usually means there's an autotest server driving that test. In this particular scenario, we have 2 client tests running, one in the host and one in the guest. > > Should we install and run an own autotest instance inside the virtual > machine which connects to the host autotest? You can either way. If you are have your code package as an autotest test, or would like to run either on a physical or virtual machine (again as a 1st level autotest client test), this would be the best option. > > Or just execute some scripts inside the VM via the kvm "session" facility? > Could be small python scripts copied into the running VM. If you're still prototyping/developing the test and you must interface with both the host and the guest, then this would probably be the best option. > > Best regards, > Thomas > _______________________________________________ > Autotest mailing list > [email protected] > http://test.kernel.org/cgi-bin/mailman/listinfo/autotest _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
