Commit 9ef4f513 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test 109:mark-as-unread and 110:set-read-ranges.

parent d40f1932
......@@ -416,13 +416,31 @@ simple_expect "=1125 0 $any_time 6 255 0 \\* 6 $any_time 00000000" "query-read-t
# 108:get-membership
send "1126 108 6 0 10 1 0\n"
simple_expect "%1126 6 0" "get-membership"
# 109:mark-as-unread
send "1127 109 6 1\n"
simple_expect "%1127 6 0" "mark-as-unread"
# 110:set-read-ranges
send "1128 110 6 0 { }\n"
simple_expect "%1128 6 0" "mark-as-unread"
send "1129 110 6 1 { 1 2 }\n"
simple_expect "%1129 6 0" "mark-as-unread"
send "1130 110 6 2 { 1 1 3 3 }\n"
simple_expect "%1130 6 0" "mark-as-unread"
send "1131 110 6 1 { 3 1 }\n"
simple_expect "%1131 55 0" "mark-as-unread"
send "1132 110 6 2 { 1 3 3 3 }\n"
simple_expect "%1132 56 1" "mark-as-unread"
send "1133 110 6 2 { 0 1 3 3 }\n"
simple_expect "%1133 17 0" "mark-as-unread"
send "1134 110 6 2 { 1 1 3 2 }\n"
simple_expect "%1134 55 1" "mark-as-unread"
# 109:does not exist (change this when you add a call)
send "1127 109\n"
simple_expect "%1127 2 0"
# 111:does not exist (change this when you add a call)
send "1135 111\n"
simple_expect "%1135 2 0"
# finally, check that 55=disconnect actually works without logging in.
send "1128 55 1\n"
simple_expect "=1128" "disconnect (no login)"
send "1136 55 1\n"
simple_expect "=1136" "disconnect (no login)"
client_death 0
client_start 0
......@@ -431,32 +449,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "1129 80 0 { }\n"
simple_expect "=1129"
send "1137 80 0 { }\n"
simple_expect "=1137"
# Log in
send "1130 62 5 [holl "gazonk"] 0\n"
simple_expect "=1130"
send "1138 62 5 [holl "gazonk"] 0\n"
simple_expect "=1138"
send "1131 9 5 5\n"
simple_expect "=1131 $any_time 5 255 0 0 \\*"
send "1139 9 5 5\n"
simple_expect "=1139 $any_time 5 255 0 0 \\*"
send "1132 27 5 0 { }\n"
simple_expect "=1132"
send "1140 27 5 0 { }\n"
simple_expect "=1140"
send "1133 9 5 5\n"
simple_expect "=1133 $any_time 5 255 0 0 \\*"
send "1141 9 5 5\n"
simple_expect "=1141 $any_time 5 255 0 0 \\*"
send "1134 6 6 1\n"
simple_expect "=1134 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1135 6 6 0\n"
simple_expect "=1135 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1142 6 6 1\n"
simple_expect "=1142 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1143 6 6 0\n"
simple_expect "=1143 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "1136 42 255\n"
simple_expect "=1136" "42=enable succeeded"
send "1137 44 0\n"
simple_expect "=1137" "44=shutdown-kom succeeded"
send "1144 42 255\n"
simple_expect "=1144" "42=enable succeeded"
send "1145 44 0\n"
simple_expect "=1145" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
......@@ -1408,31 +1408,50 @@ simple_expect "=1374 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_ti
send "1375 108 6 0 100 0 1\n"
simple_expect "=1375 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 1 \\* 6 $any_time 00000000 }"
# There is no call 109--yet.
send "1376 109\n"
simple_expect "%1376 2 0"
# test call 109 (mark-as-unread)
talk_to client 0
send "1376 109 7 4\n"
simple_expect "=1376"
send "1377 108 6 0 100 1 0\n"
simple_expect "=1377 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 2 { 1 3 5 6 } 6 $any_time 00000000 }"
# test call 110 (set-read-ranges)
send "1378 110 7 0 { }\n"
simple_expect "=1378"
send "1379 108 6 0 100 1 0\n"
simple_expect "=1379 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 0 \\* 6 $any_time 00000000 }"
send "1380 110 7 3 { 1 1 3 4 6 6 }\n"
simple_expect "=1380"
send "1381 108 6 0 100 1 0\n"
simple_expect "=1381 3 { 0 $any_time 10 123 0 \\* 8 $any_time 00000000 1 $any_time 6 255 0 \\* 6 $any_time 00000000 2 $any_time 7 100 2 { 1 4 6 6 } 6 $any_time 00000000 }"
# There is no call 110--yet.
send "1377 110\n"
simple_expect "%1377 2 0"
talk_to client 1
# There is no call 111--yet.
send "1378 111 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1378 2 0"
send "1382 111 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1382 2 0"
# There is no call 112--yet.
send "1379 112\n"
simple_expect "%1379 2 0"
send "1383 112\n"
simple_expect "%1383 2 0"
# There is no call 113--yet.
send "1384 113\n"
simple_expect "%1384 2 0"
# There is no call 114--yet.
send "1385 114\n"
simple_expect "%1385 2 0"
# Disconnect all but the first session
talk_to client 2
send "1380 55 4\n"
simple_expect "=1380"
send "1386 55 4\n"
simple_expect "=1386"
client_death 2
talk_to client 1
send "1381 55 2\n"
simple_expect "=1381"
send "1387 55 2\n"
simple_expect "=1387"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1440,20 +1459,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1382 62 5 [holl "bar"] 0\n"
send "1388 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1382"
simple_expect "=1388"
send "1383 42 255\n"
simple_expect "=1383" "42=enable succeeded"
send "1384 43\n"
send "1389 42 255\n"
simple_expect "=1389" "42=enable succeeded"
send "1390 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1384"
simple_expect "=1390"
talk_to client 0
send "1385 44 0\n"
simple_expect "=1385" "44=shutdown-kom succeeded"
send "1391 44 0\n"
simple_expect "=1391" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment