Commit 7062cbfd authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test find_next_conf_no and find_previous_conf_no.

parent 3b506d69
......@@ -475,12 +475,32 @@ simple_expect "=1148 8"
send "1149 115\n"
simple_expect "=1149 1"
# 116:does not exist (change this when you add a call)
send "1150 116\n"
simple_expect "%1150 2 0"
# 116:find-next-conf-no
send "1150 116 0\n"
simple_expect "%1150 6 0"
send "1151 116 1\n"
simple_expect "%1151 6 0"
send "1152 116 2\n"
simple_expect "%1152 6 0"
send "1153 116 200\n"
simple_expect "%1153 6 0"
# 117:find-previous-conf-no
send "1154 117 0\n"
simple_expect "%1154 6 0"
send "1155 117 1\n"
simple_expect "%1155 6 0"
send "1156 117 2\n"
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"
# finally, check that 55=disconnect actually works without logging in.
send "1151 55 1\n"
simple_expect "=1151" "disconnect (no login)"
send "1159 55 1\n"
simple_expect "=1159" "disconnect (no login)"
client_death 0
client_start 0
......@@ -489,32 +509,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "1152 80 0 { }\n"
simple_expect "=1152"
send "1160 80 0 { }\n"
simple_expect "=1160"
# Log in
send "1153 62 5 [holl "gazonk"] 0\n"
simple_expect "=1153"
send "1161 62 5 [holl "gazonk"] 0\n"
simple_expect "=1161"
send "1154 9 5 5\n"
simple_expect "=1154 $any_time 5 255 0 0 \\*"
send "1162 9 5 5\n"
simple_expect "=1162 $any_time 5 255 0 0 \\*"
send "1155 27 5 0 { }\n"
simple_expect "=1155"
send "1163 27 5 0 { }\n"
simple_expect "=1163"
send "1156 9 5 5\n"
simple_expect "=1156 $any_time 5 255 0 0 \\*"
send "1164 9 5 5\n"
simple_expect "=1164 $any_time 5 255 0 0 \\*"
send "1157 6 6 1\n"
simple_expect "=1157 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "1158 6 6 0\n"
simple_expect "=1158 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
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"
talk_to client 0
send "1159 42 255\n"
simple_expect "=1159" "42=enable succeeded"
send "1160 44 0\n"
simple_expect "=1160" "44=shutdown-kom succeeded"
send "1167 42 255\n"
simple_expect "=1167" "42=enable succeeded"
send "1168 44 0\n"
simple_expect "=1168" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
......@@ -1469,31 +1469,68 @@ simple_expect "=1395 13"
send "1396 115\n"
simple_expect "=1396 11"
# There is no call 116--yet.
send "1397 116 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1397 2 0"
# test call 116 (find-next-conf-no)
send "1397 116 0\n"
simple_expect "=1397 1"
send "1398 116 1\n"
simple_expect "=1398 2"
send "1399 116 2\n"
simple_expect "=1399 3"
send "1400 116 6\n"
simple_expect "=1400 7"
send "1401 116 7\n"
simple_expect "=1401 8"
send "1402 116 8\n"
simple_expect "=1402 10"
send "1403 116 9\n"
simple_expect "=1403 10"
send "1404 116 200\n"
simple_expect "%1404 9 200"
# 117:find-previous-conf-no
send "1405 117 0\n"
simple_expect "%1405 9 0"
send "1406 117 1\n"
simple_expect "%1406 9 1"
send "1407 117 2\n"
simple_expect "=1407 1"
send "1408 117 200\n"
simple_expect "=1408 12"
send "1409 117 11\n"
simple_expect "=1409 10"
send "1410 117 10\n"
simple_expect "=1410 8"
send "1411 117 9\n"
simple_expect "=1411 8"
send "1412 117 8\n"
simple_expect "=1412 7"
# There is no call 117--yet.
send "1398 117\n"
simple_expect "%1398 2 0"
# There is no call 118--yet.
send "1399 118\n"
simple_expect "%1399 2 0"
send "1413 118 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1413 2 0"
# There is no call 119--yet.
send "1400 119\n"
simple_expect "%1400 2 0"
send "1414 119\n"
simple_expect "%1414 2 0"
# There is no call 120--yet.
send "1415 120\n"
simple_expect "%1415 2 0"
# There is no call 121--yet.
send "1416 121\n"
simple_expect "%1416 2 0"
# Disconnect all but the first session
talk_to client 2
send "1401 55 4\n"
simple_expect "=1401"
send "1417 55 4\n"
simple_expect "=1417"
client_death 2
talk_to client 1
send "1402 55 2\n"
simple_expect "=1402"
send "1418 55 2\n"
simple_expect "=1418"
simple_expect ":2 13 8 2"
client_death 1
......@@ -1501,20 +1538,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1403 62 5 [holl "bar"] 0\n"
send "1419 62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1403"
simple_expect "=1419"
send "1404 42 255\n"
simple_expect "=1404" "42=enable succeeded"
send "1405 43\n"
send "1420 42 255\n"
simple_expect "=1420" "42=enable succeeded"
send "1421 43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=1405"
simple_expect "=1421"
talk_to client 0
send "1406 44 0\n"
simple_expect "=1406" "44=shutdown-kom succeeded"
send "1422 44 0\n"
simple_expect "=1422" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
......@@ -23,6 +23,7 @@
# Test async-new-motd.
# Also test first-unused-conf-no and first-unused-text-no.
# Also test find-next-conf-no and find-previous-conf-no.
#
# Persons:
# 5: admin
......@@ -258,16 +259,247 @@ talk_to client 8
send "1041 91 10\n"
simple_expect "%1041 9 10"
# Test find-next-conf-no and find-previous-conf-no.
# Person 5 is allowed to see everything.
talk_to client 5
send "1042 116 0\n"
simple_expect "=1042 1"
send "1043 116 1\n"
simple_expect "=1043 2"
send "1044 116 2\n"
simple_expect "=1044 3"
send "1045 116 3\n"
simple_expect "=1045 4"
send "1046 116 4\n"
simple_expect "=1046 5"
send "1047 116 5\n"
simple_expect "=1047 6"
send "1048 116 6\n"
simple_expect "=1048 7"
send "1049 116 7\n"
simple_expect "=1049 8"
send "1050 116 8\n"
simple_expect "=1050 9"
send "1051 116 9\n"
simple_expect "=1051 10"
send "1052 116 10\n"
simple_expect "%1052 9 10"
send "1053 116 11\n"
simple_expect "%1053 9 11"
send "1054 117 0\n"
simple_expect "%1054 9 0"
send "1055 117 1\n"
simple_expect "%1055 9 1"
send "1056 117 2\n"
simple_expect "=1056 1"
send "1057 117 3\n"
simple_expect "=1057 2"
send "1058 117 4\n"
simple_expect "=1058 3"
send "1059 117 5\n"
simple_expect "=1059 4"
send "1060 117 6\n"
simple_expect "=1060 5"
send "1061 117 7\n"
simple_expect "=1061 6"
send "1062 117 8\n"
simple_expect "=1062 7"
send "1063 117 9\n"
simple_expect "=1063 8"
send "1064 117 10\n"
simple_expect "=1064 9"
send "1065 117 11\n"
simple_expect "=1065 10"
send "1066 117 12\n"
simple_expect "=1066 10"
send "1067 117 120\n"
simple_expect "=1067 10"
# Person 6 is allowed to see everything.
talk_to client 6
send "1068 116 0\n"
simple_expect "=1068 1"
send "1069 116 1\n"
simple_expect "=1069 2"
send "1070 116 2\n"
simple_expect "=1070 3"
send "1071 116 3\n"
simple_expect "=1071 4"
send "1072 116 4\n"
simple_expect "=1072 5"
send "1073 116 5\n"
simple_expect "=1073 6"
send "1074 116 6\n"
simple_expect "=1074 7"
send "1075 116 7\n"
simple_expect "=1075 8"
send "1076 116 8\n"
simple_expect "=1076 9"
send "1077 116 9\n"
simple_expect "=1077 10"
send "1078 116 10\n"
simple_expect "%1078 9 10"
send "1079 116 11\n"
simple_expect "%1079 9 11"
send "1080 117 0\n"
simple_expect "%1080 9 0"
send "1081 117 1\n"
simple_expect "%1081 9 1"
send "1082 117 2\n"
simple_expect "=1082 1"
send "1083 117 3\n"
simple_expect "=1083 2"
send "1084 117 4\n"
simple_expect "=1084 3"
send "1085 117 5\n"
simple_expect "=1085 4"
send "1086 117 6\n"
simple_expect "=1086 5"
send "1087 117 7\n"
simple_expect "=1087 6"
send "1088 117 8\n"
simple_expect "=1088 7"
send "1089 117 9\n"
simple_expect "=1089 8"
send "1090 117 10\n"
simple_expect "=1090 9"
send "1091 117 11\n"
simple_expect "=1091 10"
send "1092 117 12\n"
simple_expect "=1092 10"
send "1093 117 120\n"
simple_expect "=1093 10"
# Person 7 is allowed to see everything.
talk_to client 7
send "1094 116 0\n"
simple_expect "=1094 1"
send "1095 116 1\n"
simple_expect "=1095 2"
send "1096 116 2\n"
simple_expect "=1096 3"
send "1097 116 3\n"
simple_expect "=1097 4"
send "1098 116 4\n"
simple_expect "=1098 5"
send "1099 116 5\n"
simple_expect "=1099 6"
send "1100 116 6\n"
simple_expect "=1100 7"
send "1101 116 7\n"
simple_expect "=1101 8"
send "1102 116 8\n"
simple_expect "=1102 9"
send "1103 116 9\n"
simple_expect "=1103 10"
send "1104 116 10\n"
simple_expect "%1104 9 10"
send "1105 116 11\n"
simple_expect "%1105 9 11"
send "1106 117 0\n"
simple_expect "%1106 9 0"
send "1107 117 1\n"
simple_expect "%1107 9 1"
send "1108 117 2\n"
simple_expect "=1108 1"
send "1109 117 3\n"
simple_expect "=1109 2"
send "1110 117 4\n"
simple_expect "=1110 3"
send "1111 117 5\n"
simple_expect "=1111 4"
send "1112 117 6\n"
simple_expect "=1112 5"
send "1113 117 7\n"
simple_expect "=1113 6"
send "1114 117 8\n"
simple_expect "=1114 7"
send "1115 117 9\n"
simple_expect "=1115 8"
send "1116 117 10\n"
simple_expect "=1116 9"
send "1117 117 11\n"
simple_expect "=1117 10"
send "1118 117 12\n"
simple_expect "=1118 10"
send "1119 117 120\n"
simple_expect "=1119 10"
# Person 8 is not allowed to see teh secret conference 10
talk_to client 8
send "1120 116 0\n"
simple_expect "=1120 1"
send "1121 116 1\n"
simple_expect "=1121 2"
send "1122 116 2\n"
simple_expect "=1122 3"
send "1123 116 3\n"
simple_expect "=1123 4"
send "1124 116 4\n"
simple_expect "=1124 5"
send "1125 116 5\n"
simple_expect "=1125 6"
send "1126 116 6\n"
simple_expect "=1126 7"
send "1127 116 7\n"
simple_expect "=1127 8"
send "1128 116 8\n"
simple_expect "=1128 9"
send "1129 116 9\n"
simple_expect "%1129 9 9"
send "1130 116 10\n"
simple_expect "%1130 9 10"
send "1131 116 11\n"
simple_expect "%1131 9 11"
send "1132 117 0\n"
simple_expect "%1132 9 0"
send "1133 117 1\n"
simple_expect "%1133 9 1"
send "1134 117 2\n"
simple_expect "=1134 1"
send "1135 117 3\n"
simple_expect "=1135 2"
send "1136 117 4\n"
simple_expect "=1136 3"
send "1137 117 5\n"
simple_expect "=1137 4"
send "1138 117 6\n"
simple_expect "=1138 5"
send "1139 117 7\n"
simple_expect "=1139 6"
send "1140 117 8\n"
simple_expect "=1140 7"
send "1141 117 9\n"
simple_expect "=1141 8"
send "1142 117 10\n"
simple_expect "=1142 9"
send "1143 117 11\n"
simple_expect "=1143 9"
send "1144 117 12\n"
simple_expect "=1144 9"
send "1145 117 120\n"
simple_expect "=1145 9"
# Shut down.
talk_to client 5
# 114:first-unused-conf-no
send "1042 114\n"
simple_expect "=1042 11"
send "1146 114\n"
simple_expect "=1146 11"
# 115:first-unused-text-no
send "1043 115\n"
simple_expect "=1043 5"
send "1044 44 0\n"
simple_expect "=1044"
send "1147 115\n"
simple_expect "=1147 5"
send "1148 44 0\n"
simple_expect "=1148"
client_death 5
client_death 6
client_death 7
......
Supports Markdown
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