blob: 087ebbc21568e51cfdfc7ec4225cc1a5ad3d470e [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'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020022variable = 'variable'
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'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020031reply = 'GET with trailing characters'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010032handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020033replied: 'ERROR 1 GET with trailing characters'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020034ok
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010035test: 'GET 1 var\ti\table'
36parsing:
37id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020038reply = 'GET variable contains invalid characters'
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010039handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020040replied: 'ERROR 1 GET variable contains invalid characters'
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010041ok
42test: 'GET 1 var\ri\rable'
43parsing:
44id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020045reply = 'GET variable contains invalid characters'
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010046handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020047replied: 'ERROR 1 GET variable contains invalid characters'
Neels Hofmeyr1b8b1522017-12-15 20:41:28 +010048ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010049test: 'GET 1 variable value'
50parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020051id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020052reply = 'GET with trailing characters'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010053handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020054replied: 'ERROR 1 GET with trailing characters'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020055ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010056test: 'GET 1 variable value\n'
57parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020058id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020059reply = 'GET with trailing characters'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010060handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020061replied: 'ERROR 1 GET with trailing characters'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020062ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010063test: 'GET 1 variable multiple value tokens'
64parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020065id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020066reply = 'GET with trailing characters'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010067handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020068replied: 'ERROR 1 GET with trailing characters'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020069ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010070test: 'GET 1 variable multiple value tokens\n'
71parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020072id = '1'
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020073reply = 'GET with trailing characters'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010074handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020075replied: 'ERROR 1 GET with trailing characters'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020076ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010077test: 'SET 1 variable value'
78parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020079id = '1'
80variable = 'variable'
81value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010082reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010083handling:
84replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020085ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010086test: 'SET 1 variable value\n'
87parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +020088id = '1'
89variable = 'variable'
90value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010091reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010092handling:
93replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020094ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +010095test: 'SET weird_id variable value'
96parsing:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +020097id = 'err'
98reply = 'Invalid message ID number'
Neels Hofmeyr83aee832017-12-16 05:38:37 +010099handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200100replied: 'ERROR err Invalid message ID number'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200101ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100102test: 'SET weird_id variable value\n'
103parsing:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200104id = 'err'
105reply = 'Invalid message ID number'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100106handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200107replied: 'ERROR err Invalid message ID number'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200108ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100109test: 'SET 1 variable multiple value tokens'
110parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200111id = '1'
112variable = 'variable'
113value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100114reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100115handling:
116replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200117ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100118test: 'SET 1 variable multiple value tokens\n'
119parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200120id = '1'
121variable = 'variable'
122value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100123reply = '(null)'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100124handling:
125replied: 'ERROR 1 Command not found'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200126ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100127test: 'SET 1 variable value_with_trailing_spaces '
128parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200129id = '1'
130variable = 'variable'
131value = 'value_with_trailing_spaces '
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 value_with_trailing_spaces \n'
137parsing:
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200138id = '1'
139variable = 'variable'
140value = 'value_with_trailing_spaces '
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 \n special_char_id value'
146parsing:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200147id = 'err'
148reply = 'Invalid message ID number'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100149handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200150replied: 'ERROR err Invalid message ID number'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200151ok
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100152test: 'SET \t special_char_id value'
153parsing:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200154id = 'err'
155reply = 'Invalid message ID number'
Neels Hofmeyr83aee832017-12-16 05:38:37 +0100156handling:
Neels Hofmeyr3da9aa62017-09-26 14:21:44 +0200157replied: 'ERROR err Invalid message ID number'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200158ok
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100159test: 'GET_REPLY 1 variable OK'
160parsing:
161id = '1'
162variable = 'variable'
163value = '(null)'
164reply = 'OK'
165handling:
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100166ok
167test: 'SET_REPLY 1 variable OK'
168parsing:
169id = '1'
170variable = 'variable'
171value = '(null)'
172reply = 'OK'
173handling:
Neels Hofmeyr6769ad62017-12-16 04:01:54 +0100174ok