Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
ceders-lyskom-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
ceders-lyskom-server
Commits
64f1a31a
Commit
64f1a31a
authored
21 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Test set_connection_time_format.
parent
83f562a1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/server/testsuite/lyskomd.0/01.exp
+31
-23
31 additions, 23 deletions
src/server/testsuite/lyskomd.0/01.exp
src/server/testsuite/lyskomd.0/03.exp
+29
-21
29 additions, 21 deletions
src/server/testsuite/lyskomd.0/03.exp
with
60 additions
and
44 deletions
src/server/testsuite/lyskomd.0/01.exp
+
31
−
23
View file @
64f1a31a
...
...
@@ -517,12 +517,20 @@ simple_expect "%1165 60 0"
send "1166 119 1 0 101\n"
simple_expect "%1166 59 100"
# 120:does not exist (change this when you add a call)
send "1167 120\n"
simple_expect "%1167 2 0"
# 120:set-connection-time-format
send "1167 120 1\n"
simple_expect "=1167"
send "1168 120 2\n"
simple_expect "%1168 19 0"
send "1169 120 0\n"
simple_expect "=1169"
# 121:does not exist (change this when you add a call)
send "1170 121\n"
simple_expect "%1170 2 0"
# finally, check that 55=disconnect actually works without logging in.
send "11
68
55 1\n"
simple_expect "=11
68
" "disconnect (no login)"
send "11
71
55 1\n"
simple_expect "=11
71
" "disconnect (no login)"
client_death 0
client_start 0
...
...
@@ -531,32 +539,32 @@ send "A\n"
send "[holl "DejaGnu test suite"]\n"
simple_expect "LysKOM" "connected"
# Turn of async messages
send "11
69
80 0 { }\n"
simple_expect "=11
69
"
send "11
72
80 0 { }\n"
simple_expect "=11
72
"
# Log in
send "117
0
62 5 [holl "gazonk"] 0\n"
simple_expect "=117
0
"
send "117
3
62 5 [holl "gazonk"] 0\n"
simple_expect "=117
3
"
send "117
1
9 5 5\n"
simple_expect "=117
1
$any_time 5 255 0 0 \\*"
send "117
4
9 5 5\n"
simple_expect "=117
4
$any_time 5 255 0 0 \\*"
send "117
2
27 5 0 { }\n"
simple_expect "=117
2
"
send "117
5
27 5 0 { }\n"
simple_expect "=117
5
"
send "117
3
9 5 5\n"
simple_expect "=117
3
$any_time 5 255 0 0 \\*"
send "117
6
9 5 5\n"
simple_expect "=117
6
$any_time 5 255 0 0 \\*"
send "117
4
6 6 1\n"
simple_expect "=117
4
[idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "117
5
6 6 0\n"
simple_expect "=117
5
0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "117
7
6 6 1\n"
simple_expect "=117
7
[idholl "DejaGnu test suite.unknown."] 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
send "117
8
6 6 0\n"
simple_expect "=117
8
0H 0000010000000000 00000000 $any_time 0 $any_num 1 0 0 0 0 0 0 1 0 0 1"
talk_to client 0
send "117
6
42 255\n"
simple_expect "=117
6
" "42=enable succeeded"
send "11
77
44 0\n"
simple_expect "=11
77
" "44=shutdown-kom succeeded"
send "117
9
42 255\n"
simple_expect "=117
9
" "42=enable succeeded"
send "11
80
44 0\n"
simple_expect "=11
80
" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
This diff is collapsed.
Click to expand it.
src/server/testsuite/lyskomd.0/03.exp
+
29
−
21
View file @
64f1a31a
...
...
@@ -1538,31 +1538,39 @@ send "1426 119 3 0 1\n"
simple_expect "%1426 42 3"
# There is no call 120--yet.
send "1427 120 1 2 3 4 1 32 { 2 }\n"
simple_expect "%1427 2 0"
# 120:set-connection-time-format
send "1427 120 1\n"
simple_expect "=1427"
send "1428 120 2\n"
simple_expect "%1428 19 0"
send "1429 120 0\n"
simple_expect "=1429"
# There is no call 121--yet.
send "14
28 121
\n"
simple_expect "%14
28
2 0"
send "14
30 121 1 2 3 4 1 32 { 2 }
\n"
simple_expect "%14
30
2 0"
# There is no call 122--yet.
send "14
29
122\n"
simple_expect "%14
29
2 0"
send "14
31
122\n"
simple_expect "%14
31
2 0"
# There is no call 123--yet.
send "1430 123\n"
simple_expect "%1430 2 0"
send "1432 123\n"
simple_expect "%1432 2 0"
# There is no call 124--yet.
send "1433 124\n"
simple_expect "%1433 2 0"
# Disconnect all but the first session
talk_to client 2
send "143
1
55 4\n"
simple_expect "=143
1
"
send "143
4
55 4\n"
simple_expect "=143
4
"
client_death 2
talk_to client 1
send "143
2
55 2\n"
simple_expect "=143
2
"
send "143
5
55 2\n"
simple_expect "=143
5
"
simple_expect ":2 13 8 2"
client_death 1
...
...
@@ -1570,20 +1578,20 @@ client_death 1
talk_to client 0
simple_expect ":2 13 8 2"
send "143
3
62 5 [holl "bar"] 0\n"
send "143
6
62 5 [holl "bar"] 0\n"
simple_expect ":2 13 6 1"
simple_expect ":2 9 5 1"
simple_expect "=143
3
"
simple_expect "=143
6
"
send "143
4
42 255\n"
simple_expect "=143
4
" "42=enable succeeded"
send "143
5
43\n"
send "143
7
42 255\n"
simple_expect "=143
7
" "42=enable succeeded"
send "143
8
43\n"
simple_expect ":0 7"
simple_expect ":0 7"
simple_expect "=143
5
"
simple_expect "=143
8
"
talk_to client 0
send "143
6
44 0\n"
simple_expect "=143
6
" "44=shutdown-kom succeeded"
send "143
9
44 0\n"
simple_expect "=143
9
" "44=shutdown-kom succeeded"
client_death 0
lyskomd_death
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment