]> git.sommitrealweird.co.uk Git - quagga-debian.git/blob - tests/libzebra.tests/teststream.exp
ca602e305b25ef23fee74238966d0558798c69a3
[quagga-debian.git] / tests / libzebra.tests / teststream.exp
1 set timeout 10
2 spawn "./teststream"
3
4 expect {
5         "endp: 15, readable: 15, writeable: 1009" { }
6         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
7 expect {
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; } }
10 expect {
11         "endp: 15, readable: 15, writeable: 0" { }
12         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
13 expect {
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; } }
16 expect {
17         "c: 0xef" { }
18         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
19 expect {
20         "w: 0xbeef" { }
21         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
22 expect {
23         "l: 0xdeadbeef" { }
24         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
25 expect {
26         "q: 0xdeadbeefdeadbeef" { }
27         eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
28 pass "teststream"