Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
ce850a19
Commit
ce850a19
authored
Aug 25, 1998
by
Per Cederqvist
Browse files
Added tests for requests 32-41.
parent
2f1f9a25
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/testsuite/lyskomd.0/01.exp
View file @
ce850a19
# 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 "10
4
1 62 5 [holl "gazonk"] 0\n"
simple_expect "=10
4
1"
send "10
5
1 62 5 [holl "gazonk"] 0\n"
simple_expect "=10
5
1"
send "10
4
2 9 5 5\n"
simple_expect "=10
4
2 $any_time 5 255 0 0 \\*"
send "10
5
2 9 5 5\n"
simple_expect "=10
5
2 $any_time 5 255 0 0 \\*"
send "10
4
3 27 5 0 { }\n"
simple_expect "=10
4
3"
send "10
5
3 27 5 0 { }\n"
simple_expect "=10
5
3"
send "10
4
4 9 5 5\n"
simple_expect "=10
4
4 $any_time 5 255 0 0 \\*"
send "10
5
4 9 5 5\n"
simple_expect "=10
5
4 $any_time 5 255 0 0 \\*"
send "10
4
5 6 6 1\n"
simple_expect "=10
4
5 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "10
4
6 6 6 0\n"
simple_expect "=10
4
6 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "10
5
5 6 6 1\n"
simple_expect "=10
5
5 [holl "DejaGnu test suite.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
send "10
5
6 6 6 0\n"
simple_expect "=10
5
6 0H 0000010000000000 00000000 $any_time 0 0 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "10
4
7 42 255\n"
simple_expect "=10
4
7" "42=enable succeeded"
send "10
4
8 44 0\n"
simple_expect "=10
4
8" "44=shutdown-kom succeeded"
send "10
5
7 42 255\n"
simple_expect "=10
5
7" "42=enable succeeded"
send "10
5
8 44 0\n"
simple_expect "=10
5
8" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment