Commit f822cb65 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Test 107=query-read-texts and 108=get-membership. Renumber.

parent ec80c1b0
......@@ -351,8 +351,8 @@ simple_expect "%1103 6 0" "create-conf"
# 89:create-person
send "1104 89 [holl "new 89 person"] [holl "89pwd"] 00000000 0 { }\n"
simple_expect "=1104 7" "create-person"
send "1104 62 7 [holl "89pwd"] 0\n"
simple_expect "=1104"
send "101105 62 7 [holl "89pwd"] 0\n"
simple_expect "=101105"
send "1105 83 1 1 0\n"
simple_expect "=1105 1 { 1 7 0 $any_num 01000000 [holl ""] }" "create-person"
send "1106 1\n"
......@@ -383,12 +383,12 @@ simple_expect "=1114 40 { 10104 10103 10102 10101 10100 35 34 33 32 31 30 29 28
# 97:set-expire
send "1115 97 1 76\n"
simple_expect "%1115 6 0" "set-expire"
# 98:query-read-texts
# 98:query-read-texts-10
send "1116 98 6 6\n"
simple_expect "=1116 0 $any_time 6 255 0 0 \\* 6 $any_time 00000000" "query-read-texts"
# 99:get-membership
simple_expect "=1116 0 $any_time 6 255 0 0 \\* 6 $any_time 00000000" "query-read-texts-10"
# 99:get-membership-10
send "1117 99 6 0 10 1\n"
simple_expect "%1117 6 0" "get-membership"
simple_expect "%1117 6 0" "get-membership-10"
# 100:add-member
send "1118 100 5 3 250 1 00000000\n"
simple_expect "%1118 6 0" "add-member"
......@@ -410,14 +410,19 @@ simple_expect "%1123 6 0" "set-keep-commented"
# 106:set-pers-flags
send "1124 106 5 10101010\n"
simple_expect "%1124 6 0" "set-pers-flags"
# 107:query-read-texts
send "1125 107 6 6 1 0\n"
simple_expect "=1125 0 $any_time 6 255 0 \\* 6 $any_time 00000000" "query-read-texts"
# 108:get-membership
send "1126 108 6 0 10 1 0\n"
simple_expect "%1126 6 0" "get-membership"
# 107:does not exist (change this when you add a call)
send "2000 107\n"
simple_expect "%2000 2 0"
# 109:does not exist (change this when you add a call)
send "1127 109\n"
simple_expect "%1127 2 0"
# finally, check that 55=disconnect actually works without logging in.
send "2001 55 1\n"
simple_expect "=2001" "disconnect (no login)"
send "1128 55 1\n"
simple_expect "=1128" "disconnect (no login)"
client_death 0
client_start 0
......@@ -426,32 +431,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "30000 80 0 { }\n"
simple_expect "=30000"
send "1129 80 0 { }\n"
simple_expect "=1129"
# Log in
send "30001 62 5 [holl "gazonk"] 0\n"
simple_expect "=30001"
send "1130 62 5 [holl "gazonk"] 0\n"
simple_expect "=1130"
send "30002 9 5 5\n"
simple_expect "=30002 $any_time 5 255 0 0 \\*"
send "1131 9 5 5\n"
simple_expect "=1131 $any_time 5 255 0 0 \\*"
send "30003 27 5 0 { }\n"
simple_expect "=30003"
send "1132 27 5 0 { }\n"
simple_expect "=1132"
send "30004 9 5 5\n"
simple_expect "=30004 $any_time 5 255 0 0 \\*"
send "1133 9 5 5\n"
simple_expect "=1133 $any_time 5 255 0 0 \\*"
send "30005 6 6 1\n"
simple_expect "=30005 [idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "30006 6 6 0\n"
simple_expect "=30006 0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
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"
talk_to client 0
send "30007 42 255\n"
simple_expect "=30007" "42=enable succeeded"
send "30008 44 0\n"
simple_expect "=30008" "44=shutdown-kom succeeded"
send "1136 42 255\n"
simple_expect "=1136" "42=enable succeeded"
send "1137 44 0\n"
simple_expect "=1137" "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