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

Initial commit.

parent 506c8aa2
# Check that get-text-stat doesn't leak information to clients
# that are not logged in.
lyskomd_start
client_start 0
talk_to client 0
send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
send "1000 0 5 [holl gazonk]\n"
simple_expect ":2 9 5 1"
simple_expect "=1000"
send "1001 88 [holl "Secret Conf"] 10100000 0 { }\n"
simple_expect "=1001 6"
send "1002 86 [holl "Text in Secret Conf"] 1 { 0 6 } 0 { }\n"
simple_expect "=1002 1"
send "1003 86 [holl "Text in news conference"] 1 { 0 4 } 0 { }\n"
simple_expect "=1003 2"
send "1004 86 [holl "Deleted text"] 1 { 0 4 } 0 { }\n"
simple_expect "=1004 3"
send "1005 29 3\n"
simple_expect "=1005"
send "1006 86 [holl "Solipsist Nation"] 0 { } 0 { }\n"
simple_expect "=1006 4"
send "1007 86 [holl "Message of the day"] 1 { 0 4 } 0 { }\n"
simple_expect "=1007 5"
send "1008 41 5\n"
simple_expect "%1008 12 0"
send "1009 42 255\n"
simple_expect "=1009"
send "1010 41 5\n"
simple_expect "=1010"
send "1011 42 0\n"
simple_expect "=1011"
send "1012 41 5\n"
simple_expect "%1012 12 0"
send "1013 25 0 0 999\n"
simple_expect "%1013 15 0"
send "1014 25 1 0 999\n"
simple_expect "=1014 [holl "Text in Secret Conf"]"
send "1015 25 2 1 10\n"
simple_expect "=1015 [holl "ext in new"]"
send "1016 25 3 0 999\n"
simple_expect "%1016 14 3"
send "1017 25 4 5 11\n"
simple_expect "=1017 [holl "sist Na"]"
send "1018 25 5 0 17\n"
simple_expect "=1018 [holl "Message of the day"]"
send "1019 25 5 0 16\n"
simple_expect "=1019 [holl "Message of the da"]"
send "1020 25 5 1 16\n"
simple_expect "=1020 [holl "essage of the da"]"
send "1021 25 5 3 15\n"
simple_expect "=1021 [holl "sage of the d"]"
send "1022 25 5 3 1540\n"
simple_expect "=1022 [holl "sage of the day"]"
client_start 1
talk_to client 1
send "A3Hfoo\n"
simple_expect "LysKOM" "connected"
send "1023 25 0 0 999\n"
simple_expect "%1023 15 0"
send "1024 25 1 0 999\n"
simple_expect "%1024 14 1"
send "1025 25 2 1 10\n"
simple_expect "%1025 14 2"
send "1026 25 3 0 999\n"
simple_expect "%1026 14 3"
send "1027 25 4 5 11\n"
simple_expect "%1027 14 4"
send "1028 25 5 0 17\n"
simple_expect "=1028 [holl "Message of the day"]"
# Create an unprivileged person, and try to re-fetch all texts
send "1029 56\n"
simple_expect "=1029 2"
send "1030 83 1 1 0\n"
simple_expect "=1030 2 { 2 0 0 $any_num 10000000 0H 1 5 0 $any_num 00000000 0H }"
send "1031 89 [holl "John Doe"] [holl "letmein"] 0 { }\n"
simple_expect ":2 9 7 2"
simple_expect "=1031 7"
talk_to client 0
simple_expect ":2 9 7 2" "client 0 also got :2 9 7 2 message"
talk_to client 1
send "1032 83 1 1 0\n"
simple_expect "=1032 2 { 2 7 0 $any_num 00000000 0H 1 5 0 $any_num 00000000 0H }"
send "1033 25 0 0 999\n"
simple_expect "%1033 15 0"
send "1034 25 1 0 999\n"
simple_expect "%1034 14 1"
send "1035 25 2 1 10\n"
simple_expect "=1035 [holl "ext in new"]"
send "1036 25 3 0 999\n"
simple_expect "%1036 14 3"
send "1037 25 4 5 11\n"
simple_expect "%1037 14 4"
send "1038 25 5 0 17\n"
simple_expect "=1038 [holl "Message of the day"]"
talk_to client 0
send "1039 42 255\n"
simple_expect "=1039" "42=enable succeeded"
send "1040 44 0\n"
simple_expect "=1040" "44=shutdown-kom succeeded"
simple_expect ":2 13 7 2"
simple_expect ":2 13 5 1"
client_death 0
talk_to client 1
simple_expect ":2 13 7 2"
client_death 1
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