Lucas

I read the tips for create a uptime test case for autotest.

But I faced an error message.

The config is :
../../common_lib/cartesian_config.py tests.cfg
dict    1:  smp2.CustomGuestLinux.uptime


The command of qemu is :
/usr/bin/qemu -name 'vm1' -nodefaults -vga std -monitor
unix:'/tmp/monitor-humanmonitor1-20111104-223259-kgX2',server,nowait
-serial unix:'/tmp/serial-20111104-223259-kgX2',server,nowait -drive
file='/home/richard/kvm/image/custom_image_linux',index=0,if=ide,cache=none
-device rtl8139,netdev=idLRqDTg,mac='9a:64:5d:40:fb:fa',id='idsYMlt4'
-netdev tap,id=idLRqDTg,fd=22 -m 1024 -smp 2 -vnc :0

The error is:
MissingError: Cannot find IP address for MAC address 9a:64:5d:40:fb:fa
   [context: logging into 'vm1']



2011/10/27 Lucas Meneghel Rodrigues <[email protected]>:
> 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.
>



-- 
Wizard
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to