blob: 4a3a1696f2ea4c8c1b346c76a588b977ade661b4 [file] [log] [blame]
Max70c7d412017-02-24 13:59:14 +01001Checking ctrl types...
Neels Hofmeyr7c1ec8c2017-03-02 14:32:52 +01002ctrl type 0 is (unknown) -> 0 OK
Max70c7d412017-02-24 13:59:14 +01003ctrl type 1 is GET -> 1 OK
4ctrl type 2 is SET -> 2 OK
5ctrl type 3 is GET_REPLY -> 3 OK
6ctrl type 4 is SET_REPLY -> 4 OK
7ctrl type 5 is TRAP -> 5 OK
8ctrl type 6 is ERROR -> 6 OK
9ctrl type 64 is unknown 0x40 [PARSE FAILED]
Neels Hofmeyr83aee832017-12-16 05:38:37 +010010test: 'GET 1 variable'
11parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020012id = '1'
13variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010014value = '(null)'
15reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010016handling:
17replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020018ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010019test: 'GET 1 variable\n'
20parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020021id = '1'
22variable = 'variable\n'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010023value = '(null)'
24reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010025handling:
26replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020027ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010028test: 'GET 1 var\ni\nable'
29parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020030id = '1'
31variable = 'var\ni\nable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010032value = '(null)'
33reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010034handling:
35replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020036ok
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010037test: 'GET 1 var\ti\table'
38parsing:
39id = '1'
40variable = 'var\ti\table'
41value = '(null)'
42reply = '(null)'
43handling:
44replied: 'ERROR 1 Command not found'
45ok
46test: 'GET 1 var\ri\rable'
47parsing:
48id = '1'
49variable = 'var\ri\rable'
50value = '(null)'
51reply = '(null)'
52handling:
53replied: 'ERROR 1 Command not found'
54ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010055test: 'GET 1 variable value'
56parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020057id = '1'
58variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010059value = '(null)'
60reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010061handling:
62replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020063ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010064test: 'GET 1 variable value\n'
65parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020066id = '1'
67variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010068value = '(null)'
69reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010070handling:
71replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020072ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010073test: 'GET 1 variable multiple value tokens'
74parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020075id = '1'
76variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010077value = '(null)'
78reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010079handling:
80replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020081ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010082test: 'GET 1 variable multiple value tokens\n'
83parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020084id = '1'
85variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010086value = '(null)'
87reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010088handling:
89replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020090ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010091test: 'SET 1 variable value'
92parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020093id = '1'
94variable = 'variable'
95value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010096reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010097handling:
98replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020099ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100100test: 'SET 1 variable value\n'
101parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200102id = '1'
103variable = 'variable'
104value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100105reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100106handling:
107replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200108ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100109test: 'SET weird_id variable value'
110parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200111id = 'weird_id'
112variable = 'variable'
113value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100114reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100115handling:
116replied: 'ERROR weird_id Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200117ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100118test: 'SET weird_id variable value\n'
119parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200120id = 'weird_id'
121variable = 'variable'
122value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100123reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100124handling:
125replied: 'ERROR weird_id Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200126ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100127test: 'SET 1 variable multiple value tokens'
128parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200129id = '1'
130variable = 'variable'
131value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100132reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100133handling:
134replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200135ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100136test: 'SET 1 variable multiple value tokens\n'
137parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200138id = '1'
139variable = 'variable'
140value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100141reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100142handling:
143replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200144ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100145test: 'SET 1 variable value_with_trailing_spaces '
146parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200147id = '1'
148variable = 'variable'
149value = 'value_with_trailing_spaces '
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100150reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100151handling:
152replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200153ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100154test: 'SET 1 variable value_with_trailing_spaces \n'
155parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200156id = '1'
157variable = 'variable'
158value = 'value_with_trailing_spaces '
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100159reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100160handling:
161replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200162ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100163test: 'SET \n special_char_id value'
164parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200165id = '\n'
166variable = 'special_char_id'
167value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100168reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100169handling:
170replied: 'ERROR \n Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200171ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100172test: 'SET \t special_char_id value'
173parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200174id = '\t'
175variable = 'special_char_id'
176value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100177reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100178handling:
179replied: 'ERROR \t Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200180ok
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100181test: 'GET_REPLY 1 variable OK'
182parsing:
183id = '1'
184variable = 'variable'
185value = '(null)'
186reply = 'OK'
187handling:
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100188ok
189test: 'SET_REPLY 1 variable OK'
190parsing:
191id = '1'
192variable = 'variable'
193value = '(null)'
194reply = 'OK'
195handling:
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100196ok