[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Automating D-I test with qemu



On Tue, Nov 15, 2005 at 08:42:59AM +0100, Helmut Wollmersdorfer wrote:
 <snip/>
> That's my magic line:
> qemu -cdrom ../d-i-iso/debian-testing-i386-businesscard.iso -k de -boot 
> d sarge.img
> 
> BTW: Can anybody tell me, how I can exchange the human operator by a 
> perl program? I tried some hours to read and write from virtual console 
> - but no success. I would like such a way of test automation.


I think you are looking for expect(1)

From `apt-cache show expect`

| Description: A program that "talks" to other programs
|  Expect is a program that "talks" to other interactive programs
|  according to a script.  Following the script, Expect knows what
|  can be expected from a program and what the correct response
|  should be.  An interpreted language provides branching and high-
|  level control structures to direct the dialogue.  In addition,
|  the user can take control and interact directly when desired,
|  afterward returning control to the script.
| Tag: devel::interpreter, interface::commandline, interface::shell,
| works-with::software:running


HTH
GSt

Attachment: signature.asc
Description: Digital signature


Reply to: