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

Re: Blackbox test for kpasswd



25 apr 2008 kl. 22.40 skrev Jeffrey Hutzelman:

>> You can test it if you have something that knows about pty's.
>
> For example, "expect"

Or if you want a smaller test case, rkpty that I just commited to  
trunk. Works with kinit on my mac.

Love

$ cat foo.txt
expect Password:
send mypassword\n
$ make && ./rkpty  -v foo.txt kinit -f
make  all-am
lha@SU.SE's Password:[output]
kinit: Password incorrect
$ echo $?
1