Skip to content
GitLab
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
3ad26897
Commit
3ad26897
authored
Dec 12, 2001
by
Per Cederqvist
Browse files
Handle send-comments-to. (Bug 308).
parent
b05c8635
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/server/testsuite/lyskomd.0/01.exp
View file @
3ad26897
...
...
@@ -379,7 +379,7 @@ send "1113 95 0 { } 0 { }\n"
simple_expect "%1113 6 0" "modify-system-info"
# 96:query-predefined-aux-items
send "1114 96\n"
simple_expect "=1114 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }" "query-predefined-aux-items"
simple_expect "=1114 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }" "query-predefined-aux-items"
# 97:set-expire
send "1115 97 1 76\n"
simple_expect "%1115 6 0" "set-expire"
...
...
src/server/testsuite/lyskomd.0/03.exp
View file @
3ad26897
...
...
@@ -138,7 +138,7 @@ simple_expect "=1009"
# exactly these aux-items. It shouldn't be hard to fix the test suite
# when more items are added.
send "1010 96\n"
simple_expect "=1010 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
simple_expect "=1010 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
send "1011 82\n"
simple_expect "=1011"
...
...
@@ -210,8 +210,8 @@ simple_expect "=1028 11 { 0 5 6 7 8 9 11 12 13 14 15 }"
# AUXITEM: All aux-items that can be set on letterboxes should be set
# on person 8, unless the aux-item has semantics that would interfere
# with the tests below.
send "1029 89 [holl "Kelly Talisman"] [holl "the stars"] 00000000
9
{ 3 00000000 0 [holl "C6 My Creator"] 3 00000000 0 [holl "C7 Slightly offensive name, huh"] 8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 9 00000000 0 [holl "compface must die"] 10 00000000 0\n"
send "[holl "Air"] 12 00000000 0 [holl "PGP public key"] 13 00000000 0 [holl "kelly@hotbox.com"] 30 00000000 0 [holl "text/plain"] 30 00000000 0 [holl "x-kom/basic"] }\n"
send "1029 89 [holl "Kelly Talisman"] [holl "the stars"] 00000000
10
{ 3 00000000 0 [holl "C6 My Creator"] 3 00000000 0 [holl "C7 Slightly offensive name, huh"] 8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 9 00000000 0 [holl "compface must die"] 10 00000000 0\n"
send "[holl "Air"] 12 00000000 0 [holl "PGP public key"] 13 00000000 0 [holl "kelly@hotbox.com"] 30 00000000 0 [holl "text/plain"] 30 00000000 0 [holl "x-kom/basic"]
33 00000000 1 1H0
}\n"
simple_expect "=1029 8"
send "1030 62 8 [holl "the stars"] 0\n"
simple_expect ":2 9 8 2"
...
...
@@ -1254,14 +1254,14 @@ simple_expect "=1338 $time_3 6 0 16 2 2 { 0 7 6 3 } 2 { 2 2 8 $any_time 00000000
# test call 93 (modify-conf-info)
send "1339 91 8\n"
extracting_expect "=1339 [holl "Kelly Talisman"] 10011000 ($any_time) $any_time 8 0 8 0 0 0 77 77 1 1 2 0
9
{ 1 3 8 $any_time 00000000 1 [holl "C6 My Creator"] 2 3 8 $any_time 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $any_time 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $any_time 00000000 1 [holl "compface must die"] 5 10 8 $any_time 00000000 0 [holl "Air"] 6 12 8 $any_time 00000000 1 [holl "PGP public key"] 7 13 8 $any_time 00000000 1 [holl "kelly@hotbox.com"] 8 30 8 $any_time 00000000 0 [holl "text/plain"] 9 30 8 $any_time 00000000 0 [holl "x-kom/basic"] }" time_c_8 1
extracting_expect "=1339 [holl "Kelly Talisman"] 10011000 ($any_time) $any_time 8 0 8 0 0 0 77 77 1 1 2 0
10
{ 1 3 8 $any_time 00000000 1 [holl "C6 My Creator"] 2 3 8 $any_time 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $any_time 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $any_time 00000000 1 [holl "compface must die"] 5 10 8 $any_time 00000000 0 [holl "Air"] 6 12 8 $any_time 00000000 1 [holl "PGP public key"] 7 13 8 $any_time 00000000 1 [holl "kelly@hotbox.com"] 8 30 8 $any_time 00000000 0 [holl "text/plain"] 9 30 8 $any_time 00000000 0 [holl "x-kom/basic"]
10 33 8 $any_time 00000000 1 [holl "0"]
}" time_c_8 1
send "1340 91 8\n"
simple_expect "=1340 [holl "Kelly Talisman"] 10011000 $time_c_8 $time_7 8 0 8 0 0 0 77 77 1 1 2 0
9
{ 1 3 8 $time_c_8 00000000 1 [holl "C6 My Creator"] 2 3 8 $time_c_8 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $time_c_8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $time_c_8 00000000 1 [holl "compface must die"] 5 10 8 $time_c_8 00000000 0 [holl "Air"] 6 12 8 $time_c_8 00000000 1 [holl "PGP public key"] 7 13 8 $time_c_8 00000000 1 [holl "kelly@hotbox.com"] 8 30 8 $time_c_8 00000000 0 [holl "text/plain"] 9 30 8 $time_c_8 00000000 0 [holl "x-kom/basic"] }"
simple_expect "=1340 [holl "Kelly Talisman"] 10011000 $time_c_8 $time_7 8 0 8 0 0 0 77 77 1 1 2 0
10
{ 1 3 8 $time_c_8 00000000 1 [holl "C6 My Creator"] 2 3 8 $time_c_8 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $time_c_8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $time_c_8 00000000 1 [holl "compface must die"] 5 10 8 $time_c_8 00000000 0 [holl "Air"] 6 12 8 $time_c_8 00000000 1 [holl "PGP public key"] 7 13 8 $time_c_8 00000000 1 [holl "kelly@hotbox.com"] 8 30 8 $time_c_8 00000000 0 [holl "text/plain"] 9 30 8 $time_c_8 00000000 0 [holl "x-kom/basic"]
10 33 8 $any_time 00000000 1 [holl "0"]
}"
send "1341 93 8 2 { 7 1 } 1 { 13 00000000 1 [holl "kelly@lysator.liu.se"] }\n"
simple_expect "=1341"
send "1342 91 8\n"
simple_expect "=1342 [holl "Kelly Talisman"] 10011000 $time_c_8 $time_7 8 0 8 0 0 0 77 77 1 1 2 0
8
{ 2 3 8 $time_c_8 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $time_c_8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $time_c_8 00000000 1 [holl "compface must die"] 5 10 8 $time_c_8 00000000 0 [holl "Air"] 6 12 8 $time_c_8 00000000 1 [holl "PGP public key"] 8 30 8 $time_c_8 00000000 0 [holl "text/plain"] 9 30 8 $time_c_8 00000000 0 [holl "x-kom/basic"] 10 13 8 $any_time 00000000 1 [holl "kelly@lysator.liu.se"] }"
simple_expect "=1342 [holl "Kelly Talisman"] 10011000 $time_c_8 $time_7 8 0 8 0 0 0 77 77 1 1 2 0
9
{ 2 3 8 $time_c_8 00000000 1 [holl "C7 Slightly offensive name, huh"] 3 8 8 $time_c_8 00000000 0 [holl "E-mail:kelly@hotbox.com"] 4 9 8 $time_c_8 00000000 1 [holl "compface must die"] 5 10 8 $time_c_8 00000000 0 [holl "Air"] 6 12 8 $time_c_8 00000000 1 [holl "PGP public key"] 8 30 8 $time_c_8 00000000 0 [holl "text/plain"] 9 30 8 $time_c_8 00000000 0 [holl "x-kom/basic"] 10
33 8 $any_time 00000000 1 [holl "0"] 11
13 8 $any_time 00000000 1 [holl "kelly@lysator.liu.se"] }"
# test call 94 (get-info)
send "1343 94\n"
...
...
@@ -1288,7 +1288,7 @@ simple_expect "=1348 $server_compat_version 1 2 3 4 0 1 { 1 9 5 $any_time 000000
# test call 96 (query-predefined-aux-items)
talk_to client 1
send "1349 96\n"
simple_expect "=1349 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
simple_expect "=1349 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
# test call 97 (set-expire)
send "1350 97 10 7123123\n"
...
...
src/server/testsuite/lyskomd.0/18.exp
View file @
3ad26897
...
...
@@ -55,10 +55,10 @@ simple_expect "=1002 39 { 10003 10002 10001 10000 4000 3002 3001 3000 2007 2006
system "kill -WINCH $lyskomd_pid"
send "1003 96\n"
simple_expect "=1003 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
simple_expect "=1003 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
send "1004 96\n"
simple_expect "=1004 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
simple_expect "=1004 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
copy_aux $srcdir/lyskomd.0/aux-items.conf
...
...
@@ -86,7 +86,7 @@ copy_aux $aux_item_default_conf_file
system "kill -WINCH $lyskomd_pid"
send "1009 96\n"
simple_expect "=1009 3
7
{ 10104 10103 10102 10101 10100 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
simple_expect "=1009 3
8
{ 10104 10103 10102 10101 10100
33
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 }"
send "1010 42 255\n"
simple_expect "=1010"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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