blob: 696a183d06a3b305e99387a36ebba07ded2676b9 [file] [log] [blame]
#!/usr/bin/expect
set timeout 10;
spawn ./app 2>&1
expect {
"plaintext read 81 \\\[71, 69, 84, 32, 47, 32, 72, 84, 84, 80, 47, 49, 46, 49, 13, 10, 72, 111, 115, 116, 58, 32, 108, 111, 99, 97, 108, 104, 111, 115, 116, 13, 10, 67, 111, 110, 110, 101, 99, 116, 105, 111, 110, 58, 32, 99, 108, 111, 115, 101, 13, 10, 65, 99, 99, 101, 112, 116, 45, 69, 110, 99, 111, 100, 105, 110, 103, 58, 32, 105, 100, 101, 110, 116, 105, 116, 121, 13, 10, 13, 10\\\]" { exit 0; }
timeout { exit 1; }
}
exit 2;