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

Added tests for requests 32-41.

parent 2f1f9a25
# Check return values for a lot of functions.
set f [open "../version.incl"]
gets $f
gets $f server_compat_version
close $f
lyskomd_start
client_start 0
......@@ -131,30 +136,60 @@ simple_expect "%1039 6 0"
# 31:sub-recipient
send "1040 31 1 4\n"
simple_expect "%1040 6 0"
# 32:add-comment
send "1041 32 2 1\n"
simple_expect "%1041 6 0"
# 33:sub-comment
send "1042 33 2 1\n"
simple_expect "%1042 6 0"
# 34:get-map
send "1043 34 1 0 99\n"
simple_expect "%1043 6 0"
# 35:get-time
send "1044 35\n"
simple_expect "=1044 $any_time"
# 36:get-info-old
send "1045 36\n"
simple_expect "=1045 $server_compat_version 1 2 3 4 0"
# 37:add-footnote
send "1046 37 1 2\n"
simple_expect "%1046 6 0"
# 38:sub-footnote
send "1047 38 1 2\n"
simple_expect "%1047 6 0"
# 39:who-is-on-old
send "1048 39\n"
simple_expect "=1048 0 \\*"
# 40:set-unread
send "1049 40 1 3\n"
simple_expect "%1049 6 0"
# 41:set-motd-of-lyskom
send "1050 41 1\n"
simple_expect "%1050 6 0"
# Log in
send "1041 62 5 [holl "gazonk"] 0\n"
simple_expect "=1041"
send "1051 62 5 [holl "gazonk"] 0\n"
simple_expect "=1051"
send "1042 9 5 5\n"
simple_expect "=1042 $any_time 5 255 0 0 \\*"
send "1052 9 5 5\n"
simple_expect "=1052 $any_time 5 255 0 0 \\*"
send "1043 27 5 0 { }\n"
simple_expect "=1043"
send "1053 27 5 0 { }\n"
simple_expect "=1053"
send "1044 9 5 5\n"
simple_expect "=1044 $any_time 5 255 0 0 \\*"
send "1054 9 5 5\n"
simple_expect "=1054 $any_time 5 255 0 0 \\*"
send "1045 6 6 1\n"
simple_expect "=1045 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1046 6 6 0\n"
simple_expect "=1046 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1055 6 6 1\n"
simple_expect "=1055 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "1056 6 6 0\n"
simple_expect "=1056 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "1047 42 255\n"
simple_expect "=1047" "42=enable succeeded"
send "1048 44 0\n"
simple_expect "=1048" "44=shutdown-kom succeeded"
send "1057 42 255\n"
simple_expect "=1057" "42=enable succeeded"
send "1058 44 0\n"
simple_expect "=1058" "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