On Mon, Aug 6, 2012 at 1:07 PM, Plamen Dimitrov
<[email protected]> wrote:
> Dear Autotest team,
>
> What is the best way to deploy customized tests to a virtual machine using the
> autotest functionality of virt_test_utils? The run_autotest() function accepts
> only the control file and copies it into a special folder of the destination
> autotest directory, but what should we do with the actual test file? The guest
> autotest directory doesn't have the exact same structure like the host
> autotest directory, but it has folder tests which might seem to be
> appropriate. However, I am not sure how to make this more dynamically - what
> parameter should I change in the configs to make that happen? Or should I
> create a separate test just to copy files to a specific destination?

If you want to run an existing client autotest test, then you must
provide the test modules (that is, directories under client/tests/
with the appropriate python files) and the control file. The mechanism
used to run autotest in a guest consists in creating a tarball of the
entire autotest client + tests and copying it to the VM using scp. So,
you probably want to:

1) Create a new branch
2) Add the new tests as sub directories of client/tests/
3) Add the appropriate control files to client/virt/autotest_control/
4) Add the appropriate variants on client/virt/subtests.cfg.sample

For other tests that do not require the execution of an autotest
client, you can get a living vm from the environment and then copying
the test files you want to the vm using the method vm.copy_files_to.
One example of it is the clock_getres test, you might look into it as
an example.

I hope this was useful,

-- 
Lucas

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to