summaryrefslogtreecommitdiffstats
path: root/tests/ctrl/ctrl_test.ok
blob: 9ddcfdb106446e1e68e6879b1713f5f8dec73093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
Checking ctrl types...
ctrl type 0 is (unknown) -> 0 OK
ctrl type 1 is GET -> 1 OK
ctrl type 2 is SET -> 2 OK
ctrl type 3 is GET_REPLY -> 3 OK
ctrl type 4 is SET_REPLY -> 4 OK
ctrl type 5 is TRAP -> 5 OK
ctrl type 6 is ERROR -> 6 OK
ctrl type 64 is unknown 0x40 [PARSE FAILED]
test: 'GET 1 variable'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable\n'
parsing:
id = '1'
variable = 'variable\n'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ni\nable'
parsing:
id = '1'
variable = 'var\ni\nable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable value'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable value\n'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable multiple value tokens'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable multiple value tokens\n'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value'
parsing:
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value\n'
parsing:
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET weird_id variable value'
parsing:
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR weird_id Command not found'
ok
test: 'SET weird_id variable value\n'
parsing:
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR weird_id Command not found'
ok
test: 'SET 1 variable multiple value tokens'
parsing:
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable multiple value tokens\n'
parsing:
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value_with_trailing_spaces  '
parsing:
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces  '
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value_with_trailing_spaces  \n'
parsing:
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces  '
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET \n special_char_id value'
parsing:
id = '\n'
variable = 'special_char_id'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR \n Command not found'
ok
test: 'SET \t special_char_id value'
parsing:
id = '\t'
variable = 'special_char_id'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR \t Command not found'
ok
test: 'GET_REPLY 1 variable OK'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
mem leak!
ok
test: 'SET_REPLY 1 variable OK'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
mem leak!
ok