Blame tests/p_exim/_helper_exim_helo.expect
|
Christoph Galuschka |
d05160 |
#!/usr/bin/expect -f
|
|
Christoph Galuschka |
d05160 |
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
|
Christoph Galuschka |
d05160 |
|
|
Christoph Galuschka |
d05160 |
set timeout 1
|
|
Christoph Galuschka |
d05160 |
spawn telnet localhost 25
|
|
Christoph Galuschka |
d05160 |
expect "220 *"
|
|
Christoph Galuschka |
d05160 |
send -- "helo localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250*Hello\ localhost*"
|
|
Christoph Galuschka |
d05160 |
send -- "mail from: root@localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ OK"
|
|
Christoph Galuschka |
d05160 |
send -- "rcpt to: root@localhost\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ Accepted"
|
|
Christoph Galuschka |
d05160 |
send -- "data\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "354*"
|
|
Christoph Galuschka |
d05160 |
send -- "t_functional test\n.\n"
|
|
Christoph Galuschka |
d05160 |
expect -- "250\ OK*"
|
|
Christoph Galuschka |
d05160 |
send -- "quit\n"
|
|
Christoph Galuschka |
d05160 |
expect "221*closing\ connection"
|