blob: 5775eb22b47bdd136ef586022337fd6c7505f280 [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 Hofmeyr505c9652017-09-26 15:24:58 +020010test parsing: 'GET 1 variable'
11id = '1'
12variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010013value = '(null)'
14reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020015ok
16test parsing: 'GET 1 variable\n'
17id = '1'
18variable = 'variable\n'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010019value = '(null)'
20reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020021ok
22test parsing: 'GET 1 var\ni\nable'
23id = '1'
24variable = 'var\ni\nable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010025value = '(null)'
26reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020027ok
28test parsing: 'GET 1 variable value'
29id = '1'
30variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010031value = '(null)'
32reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020033ok
34test parsing: 'GET 1 variable value\n'
35id = '1'
36variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010037value = '(null)'
38reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020039ok
40test parsing: 'GET 1 variable multiple value tokens'
41id = '1'
42variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010043value = '(null)'
44reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020045ok
46test parsing: 'GET 1 variable multiple value tokens\n'
47id = '1'
48variable = 'variable'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010049value = '(null)'
50reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020051ok
52test parsing: 'SET 1 variable value'
53id = '1'
54variable = 'variable'
55value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010056reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020057ok
58test parsing: 'SET 1 variable value\n'
59id = '1'
60variable = 'variable'
61value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010062reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020063ok
64test parsing: 'SET weird_id variable value'
65id = 'weird_id'
66variable = 'variable'
67value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010068reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020069ok
70test parsing: 'SET weird_id variable value\n'
71id = 'weird_id'
72variable = 'variable'
73value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010074reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020075ok
76test parsing: 'SET 1 variable multiple value tokens'
77id = '1'
78variable = 'variable'
79value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010080reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020081ok
82test parsing: 'SET 1 variable multiple value tokens\n'
83id = '1'
84variable = 'variable'
85value = 'multiple value tokens'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010086reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020087ok
88test parsing: 'SET 1 variable value_with_trailing_spaces '
89id = '1'
90variable = 'variable'
91value = 'value_with_trailing_spaces '
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010092reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020093ok
94test parsing: 'SET 1 variable value_with_trailing_spaces \n'
95id = '1'
96variable = 'variable'
97value = 'value_with_trailing_spaces '
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +010098reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +020099ok
100test parsing: 'SET \n special_char_id value'
101id = '\n'
102variable = 'special_char_id'
103value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100104reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200105ok
106test parsing: 'SET \t special_char_id value'
107id = '\t'
108variable = 'special_char_id'
109value = 'value'
Neels Hofmeyr0ab6eca2017-12-16 01:03:37 +0100110reply = '(null)'
Neels Hofmeyr505c9652017-09-26 15:24:58 +0200111ok