Commit 3ba2074d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added tests for requests 92-104.

parent 526812a0
......@@ -346,11 +346,50 @@ simple_expect "%1108 14 1"
# 91:get-conf-stat
send "1109 91 1\n"
simple_expect "=1109 [holl "Presentation .av nya. mten"] 00001000 $any_time $any_time 0 0 0 0 0 0 77 0 1 0 0 0 \\*"
# 92:modify-text-info
send "1110 92 1 0 { } 0 { }\n"
simple_expect "%1110 6 0"
# 93:modify-conf-info
send "1111 93 1 0 { } 0 { }\n"
simple_expect "%1111 6 0"
# 94:get-info
send "1112 94\n"
simple_expect "=1112 $server_compat_version 1 2 3 4 0 0 \\*"
# 95:modify-system-info
send "1113 95 0 { } 0 { }\n"
simple_expect "%1113 6 0"
# 96:query-predefined-aux-items
send "1114 96\n"
simple_expect "=1114 15 { 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
# 97:set-expire
send "1115 97 1 76\n"
simple_expect "%1115 6 0"
# 98:query-read-texts
send "1116 98 6 6\n"
# FIXME: sould return position as well
simple_expect "=1116 $any_time 6 255 0 0 \\* 0 $any_time 00000000"
# 99:get-membership
send "1117 99 6 0 10 1\n"
simple_expect "%1117 6 0"
# 100:add-member
send "1118 100 5 3 250 1 00000000\n"
simple_expect "%1118 6 0"
# 101:get-members
send "1119 101 5 0 10\n"
simple_expect "=1119 1 { 5 5 $any_time 00000000 }"
# 102:set-membership-type
send "1120 102 5 5 01000000\n"
simple_expect "%1120 6 0"
# 103:local-to-global
send "1121 103 1 1 20\n"
simple_expect "%1121 6 0"
# 104:map_created_texts
send "1122 104 5 1 20\n"
simple_expect "%1122 6 0"
# finally, check that 55=disconnect actually works without logging in.
send "1110 55 1\n"
simple_expect "=1110"
send "1123 55 1\n"
simple_expect "=1123"
client_death 0
client_start 0
......@@ -359,32 +398,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "1111 80 0 { }\n"
simple_expect "=1111"
send "1124 80 0 { }\n"
simple_expect "=1124"
# Log in
send "1112 62 5 [holl "gazonk"] 0\n"
simple_expect "=1112"
send "1125 62 5 [holl "gazonk"] 0\n"
simple_expect "=1125"
send "1113 9 5 5\n"
simple_expect "=1113 $any_time 5 255 0 0 \\*"
send "1126 9 5 5\n"
simple_expect "=1126 $any_time 5 255 0 0 \\*"
send "1114 27 5 0 { }\n"
simple_expect "=1114"
send "1127 27 5 0 { }\n"
simple_expect "=1127"
send "1115 9 5 5\n"
simple_expect "=1115 $any_time 5 255 0 0 \\*"
send "1128 9 5 5\n"
simple_expect "=1128 $any_time 5 255 0 0 \\*"
send "1116 6 6 1\n"
simple_expect "=1116 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1117 6 6 0\n"
simple_expect "=1117 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1129 6 6 1\n"
simple_expect "=1129 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1130 6 6 0\n"
simple_expect "=1130 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "1118 42 255\n"
simple_expect "=1118" "42=enable succeeded"
send "1119 44 0\n"
simple_expect "=1119" "44=shutdown-kom succeeded"
send "1131 42 255\n"
simple_expect "=1131" "42=enable succeeded"
send "1132 44 0\n"
simple_expect "=1132" "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