summaryrefslogtreecommitdiff
path: root/tests/libzebra.tests/teststream.exp
blob: ca602e305b25ef23fee74238966d0558798c69a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
set timeout 10
spawn "./teststream"

expect {
	"endp: 15, readable: 15, writeable: 1009" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"0xef 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"endp: 15, readable: 15, writeable: 0" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"0xef 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef 0xde 0xad 0xbe 0xef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"c: 0xef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"w: 0xbeef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"l: 0xdeadbeef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
expect {
	"q: 0xdeadbeefdeadbeef" { }
	eof { fail "teststream"; exit; } timeout { fail "teststream"; exit; } }
pass "teststream"