nmap/tests/ncat-protocol-sanity-test/tcpclt.exp
Serhii Turivnyi e38af10998 Add CI tests using the standard test interface
- ncat-protocol-sanity-test
 - simple-functionality-test
2017-11-29 15:17:00 +02:00

14 lines
188 B
Plaintext
Executable File

#!/usr/bin/expect
set timeout 10
spawn ncat -4 localhost 6666
expect {
eof { exit 2 }
default { exit 1 }
"ServerSend\r" { sleep 1; send -- "ClientSend\r" }
}
sleep 1
exit 0