Commit 7cd980d1 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test get-scheduling and set-scheduling.

parent 14579c8f
......@@ -495,12 +495,34 @@ simple_expect "%1156 6 0"
send "1157 117 200\n"
simple_expect "%1157 6 0"
# 118:does not exist (change this when you add a call)
send "1158 118\n"
simple_expect "%1158 2 0"
# 118:get-scheduling
send "1158 118 0\n"
simple_expect "=1158 0 1"
send "1159 118 1\n"
simple_expect "=1159 0 1"
send "1160 118 2\n"
simple_expect "%1160 6 0"
# 119:set-scheduling
send "1161 119 0 0 1\n"
simple_expect "=1161"
send "1162 119 2 0 1\n"
simple_expect "%1162 6 0"
send "1163 119 1 0 1\n"
simple_expect "=1163"
send "1164 119 1 1 1\n"
simple_expect "%1164 19 0"
send "1165 119 1 0 0\n"
simple_expect "%1165 60 0"
send "1166 119 1 0 2\n"
simple_expect "%1166 59 1"
# 120:does not exist (change this when you add a call)
send "1167 120\n"
simple_expect "%1167 2 0"
# finally, check that 55=disconnect actually works without logging in.
send "1159 55 1\n"
simple_expect "=1159" "disconnect (no login)"
send "1168 55 1\n"
simple_expect "=1168" "disconnect (no login)"
client_death 0
client_start 0
......@@ -509,32 +531,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "1160 80 0 { }\n"
simple_expect "=1160"
send "1169 80 0 { }\n"
simple_expect "=1169"
# Log in
send "1161 62 5 [holl "gazonk"] 0\n"
simple_expect "=1161"
send "1170 62 5 [holl "gazonk"] 0\n"
simple_expect "=1170"
send "1162 9 5 5\n"
simple_expect "=1162 $any_time 5 255 0 0 \\*"
send "1171 9 5 5\n"
simple_expect "=1171 $any_time 5 255 0 0 \\*"
send "1163 27 5 0 { }\n"
simple_expect "=1163"
send "1172 27 5 0 { }\n"
simple_expect "=1172"
send "1164 9 5 5\n"
simple_expect "=1164 $any_time 5 255 0 0 \\*"
send "1173 9 5 5\n"
simple_expect "=1173 $any_time 5 255 0 0 \\*"
send "1165 6 6 1\n"
simple_expect "=1165 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1166 6 6 0\n"
simple_expect "=1166 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1174 6 6 1\n"
simple_expect "=1174 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1175 6 6 0\n"
simple_expect "=1175 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "1167 42 255\n"
simple_expect "=1167" "42=enable succeeded"
send "1168 44 0\n"
simple_expect "=1168" "44=shutdown-kom succeeded"
send "1176 42 255\n"
simple_expect "=1176" "42=enable succeeded"
send "1177 44 0\n"
simple_expect "=1177" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
......@@ -1505,32 +1505,64 @@ simple_expect "=1411 8"
send "1412 117 8\n"
simple_expect "=1412 7"
# 118:get-scheduling
send "1413 118 0\n"
simple_expect "=1413 0 1"
send "1414 118 1\n"
simple_expect "=1414 0 1"
send "1415 118 2\n"
simple_expect "=1415 0 1"
send "1416 118 3\n"
simple_expect "%1416 42 3"
send "1417 118 4\n"
simple_expect "=1417 0 1"
send "1418 118 5\n"
simple_expect "%1418 42 5"
# 119:set-scheduling
send "1419 56\n"
simple_expect "=1419 2"
send "1420 119 0 0 1\n"
simple_expect "=1420"
send "1421 119 1 0 1\n"
simple_expect "%1421 11 1"
send "1422 119 2 0 1\n"
simple_expect "=1422"
send "1423 119 2 1 1\n"
simple_expect "%1423 19 0"
send "1424 119 2 0 0\n"
simple_expect "%1424 60 0"
send "1425 119 2 0 2\n"
simple_expect "%1425 59 1"
send "1426 119 3 0 1\n"
simple_expect "%1426 42 3"
# There is no call 118--yet.
send "1413 118 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1413 2 0"
# There is no call 119--yet.
send "1414 119\n"
simple_expect "%1414 2 0"
# There is no call 120--yet.
send "1415 120\n"
simple_expect "%1415 2 0"
send "1427 120 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1427 2 0"
# There is no call 121--yet.
send "1416 121\n"
simple_expect "%1416 2 0"
send "1428 121\n"
simple_expect "%1428 2 0"
# There is no call 122--yet.
send "1429 122\n"
simple_expect "%1429 2 0"
# There is no call 123--yet.
send "1430 123\n"
simple_expect "%1430 2 0"
# Disconnect all but the first session
talk_to client 2
send "1417 55 4\n"
simple_expect "=1417"
send "1431 55 4\n"
simple_expect "=1431"
client_death 2
talk_to client 1
send "1418 55 2\n"
simple_expect "=1418"
send "1432 55 2\n"
simple_expect "=1432"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1538,20 +1570,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1419 62 5 [holl "bar"] 0\n"
send "1433 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1419"
simple_expect "=1433"
send "1420 42 255\n"
simple_expect "=1420" "42=enable succeeded"
send "1421 43\n"
send "1434 42 255\n"
simple_expect "=1434" "42=enable succeeded"
send "1435 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1421"
simple_expect "=1435"
talk_to client 0
send "1422 44 0\n"
simple_expect "=1422" "44=shutdown-kom succeeded"
send "1436 44 0\n"
simple_expect "=1436" "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