On Thu, 2011-04-14 at 16:13 -0700, Gaston, Jason D wrote: > >1) Go to client/tests/kvm > >2) Run ./get_started.py. See the messages and follow the instructions. > >3) You'll run ../bin/autotest --verbose control on that dir (the > >get_started.py script will give you a command line with absolute paths > >if you prefer) and then there you go, KVM tests will start to execute. > > > >Hope it was useful, > > > >Lucas > > Thanks Lucas, yes that is how I have been able to execute the kvm test > directly on the client. My problem is that I have a custom test manager > application and it remotely executes "autotest job", where the job contains > job.run_test('testname'). I'm not sure, at this point, how to alter it to > run a kvm test.
That would be fairly easy to accomplish, you can instantiate a config parser, make it read the config file you want, and then use the method get_dicts, that will yield all the dictionaries you need, you just need to make them to be printed to some file. Well, it'd be something like: """ needed imports, yadda yadda... my_control = open('/path/to/my_control') parser = kvm_config.Parser() parser.parse_file('foo.cfg') for dict in parser.get_dicts(''): my_control.write("job.run_test(url='kvm', params=%s)" % dict) """ Or for that matter call your app running test kvm and passing the params. Keep in mind this is a rough sketch, hope it passes the idea. You might maybe introduce some logic in your auto generated control file to mimic the 'conditional execution' mechanism that we have in the kvm control file, but for now, a flat list of tests would already help you a lot I guess... > > Jason > _______________________________________________ Autotest mailing list Autotest@test.kernel.org http://test.kernel.org/cgi-bin/mailman/listinfo/autotest