Commit b42141f6 authored by Per Cederqvist's avatar Per Cederqvist

Test call 4-7.

parent 9ac5e842
......@@ -262,10 +262,62 @@ simple_expect ":3 5 7 [holl ".So called. Christian Music"] [holl "PRIMa musik"]"
talk_to client 2
simple_expect ":3 5 7 [holl ".So called. Christian Music"] [holl "PRIMa musik"]"
# FIXME: test call 4
# FIXME: test call 5
# FIXME: test call 6
# FIXME: test call 7
# test call 4 (change-what-i-am-doing)
talk_to client 0
send "1050 4 [holl "Running a test suite"]\n"
simple_expect "=1050"
talk_to client 1
simple_expect ":5 6 6 6 1 [holl "Running a test suite"] [holl "ceder@gratia@localhost"]"
send "1051 4 [holl "Accepting i-am-on"]\n"
simple_expect ":5 6 8 0 2 [holl "Accepting i-am-on"] [holl "ic@gratia@localhost"]"
simple_expect "=1051"
# call 5 (create-person-old) is tested above.
# test call 6 (get-person-stat-old)
send "1052 6 0 0\n"
simple_expect "%1052 8 0"
send "1053 6 3 0\n"
simple_expect "%1053 10 3"
send "1054 6 10 0\n"
simple_expect "%1054 10 10"
send "1055 6 6 0\n"
simple_expect "=1055 [holl ""] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
send "1056 6 6 1\n"
simple_expect "=1056 [holl "ceder@gratia.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
send "1057 6 6 2\n"
simple_expect "=1057 [holl ""] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
send "1058 6 6 3\n"
simple_expect "=1058 [holl "ceder@gratia.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
send "1059 6 6 32770\n"
simple_expect "=1059 [holl ""] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
send "1060 6 6 32771\n"
simple_expect "=1060 [holl "ceder@gratia.unknown.@localhost"] 0000010000000000 00000000 $any_time 0 0 1 0 48 0 0 0 1 1 3 0 2"
# test call 7 (set-priv-bits)
send "1061 7 8 0000000000000000\n"
simple_expect "%1061 12 0"
talk_to client 2
send "1062 62 5 [holl "gazonk"] 1\n"
simple_expect "=1062"
send "1063 7 8 0000000000000000\n"
simple_expect "%1063 12 0"
send "1064 42 255\n"
simple_expect "=1064"
send "1065 6 8 0\n"
simple_expect "=1065 [holl ""] 0000010000000000 00000000 $any_time 0 0 2 0 64 0 0 0 0 1 4 0 2"
send "1066 7 8 0000000000000000\n"
simple_expect "=1066"
send "1067 6 8 0\n"
simple_expect "=1067 [holl ""] 0000000000000000 00000000 $any_time 0 0 2 0 64 0 0 0 0 1 4 0 2"
send "1068 7 8 1111111111111111\n"
simple_expect "=1068"
send "1069 6 8 0\n"
simple_expect "=1069 [holl ""] 1111111111111111 00000000 $any_time 0 0 2 0 64 0 0 0 0 1 4 0 2"
send "1070 7 8 0000010000000000\n"
simple_expect "=1070"
send "1071 6 8 0\n"
simple_expect "=1071 [holl ""] 0000010000000000 00000000 $any_time 0 0 2 0 64 0 0 0 0 1 4 0 2"
# FIXME: test call 8
# FIXME: test call 9
# FIXME: test call 10
......@@ -365,32 +417,32 @@ simple_expect ":3 5 7 [holl ".So called. Christian Music"] [holl "PRIMa musik"]"
# FIXME: test call 104
# There is no call 105--yet.
send "1050 105\n"
simple_expect "%1050 2 0"
send "1072 105\n"
simple_expect "%1072 2 0"
# There is no call 106--yet.
send "1051 106\n"
simple_expect "%1051 2 0"
send "1073 106\n"
simple_expect "%1073 2 0"
# There is no call 107--yet.
send "1052 107\n"
simple_expect "%1052 2 0"
send "1074 107\n"
simple_expect "%1074 2 0"
# There is no call 108--yet.
send "1053 108\n"
simple_expect "%1053 2 0"
send "1075 108\n"
simple_expect "%1075 2 0"
# There is no call 109--yet.
send "1054 109\n"
simple_expect "%1054 2 0"
send "1076 109\n"
simple_expect "%1076 2 0"
# There is no call 110--yet.
send "1055 110\n"
simple_expect "%1055 2 0"
send "1077 110\n"
simple_expect "%1077 2 0"
talk_to client 1
send "1056 55 2\n"
simple_expect "=1056"
send "1078 55 2\n"
simple_expect "=1078"
simple_expect ":2 13 8 2"
client_death 1
......@@ -398,15 +450,15 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "1057 62 5 [holl "gazonk"] 0\n"
send "1079 62 5 [holl "gazonk"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=1057"
simple_expect "=1079"
send "1058 42 255\n"
simple_expect "=1058" "42=enable succeeded"
send "1059 44 0\n"
simple_expect "=1059" "44=shutdown-kom succeeded"
send "1080 42 255\n"
simple_expect "=1080" "42=enable succeeded"
send "1081 44 0\n"
simple_expect "=1081" "44=shutdown-kom succeeded"
simple_expect ":2 13 5 1"
client_death 0
# FIXME: There are enqueued logout/disconnect messages to this client.
......
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