blob: ca602e305b25ef23fee74238966d0558798c69a3 [file] [log] [blame]
David Lamparterc69905b2013-01-24 01:39:14 +01001set timeout 10
2spawn "./teststream"
3
4expect {
5 "endp: 15, readable: 15, writeable: 1009" { }
6 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
7expect {
8 "0xef 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef" { }
9 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
10expect {
11 "endp: 15, readable: 15, writeable: 0" { }
12 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
13expect {
14 "0xef 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef" { }
15 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
16expect {
17 "c: 0xef" { }
18 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
19expect {
20 "w: 0xbeef" { }
21 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
22expect {
23 "l: 0xdeadbeef" { }
24 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
25expect {
26 "q: 0xdeadbeefdeadbeef" { }
27 eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
28pass "teststream"