blob: 9c8877b2f6212e2f604447eb026ece2158fc19a7 [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'
13value = NULL
14reply = NULL
15ok
16test parsing: 'GET 1 variable\n'
17id = '1'
18variable = 'variable\n'
19value = NULL
20reply = NULL
21ok
22test parsing: 'GET 1 var\ni\nable'
23id = '1'
24variable = 'var\ni\nable'
25value = NULL
26reply = NULL
27ok
28test parsing: 'GET 1 variable value'
29id = '1'
30variable = 'variable'
31value = NULL
32reply = NULL
33ok
34test parsing: 'GET 1 variable value\n'
35id = '1'
36variable = 'variable'
37value = NULL
38reply = NULL
39ok
40test parsing: 'GET 1 variable multiple value tokens'
41id = '1'
42variable = 'variable'
43value = NULL
44reply = NULL
45ok
46test parsing: 'GET 1 variable multiple value tokens\n'
47id = '1'
48variable = 'variable'
49value = NULL
50reply = NULL
51ok
52test parsing: 'SET 1 variable value'
53id = '1'
54variable = 'variable'
55value = 'value'
56reply = NULL
57ok
58test parsing: 'SET 1 variable value\n'
59id = '1'
60variable = 'variable'
61value = 'value'
62reply = NULL
63ok
64test parsing: 'SET weird_id variable value'
65id = 'weird_id'
66variable = 'variable'
67value = 'value'
68reply = NULL
69ok
70test parsing: 'SET weird_id variable value\n'
71id = 'weird_id'
72variable = 'variable'
73value = 'value'
74reply = NULL
75ok
76test parsing: 'SET 1 variable multiple value tokens'
77id = '1'
78variable = 'variable'
79value = 'multiple value tokens'
80reply = NULL
81ok
82test parsing: 'SET 1 variable multiple value tokens\n'
83id = '1'
84variable = 'variable'
85value = 'multiple value tokens'
86reply = NULL
87ok
88test parsing: 'SET 1 variable value_with_trailing_spaces '
89id = '1'
90variable = 'variable'
91value = 'value_with_trailing_spaces '
92reply = NULL
93ok
94test parsing: 'SET 1 variable value_with_trailing_spaces \n'
95id = '1'
96variable = 'variable'
97value = 'value_with_trailing_spaces '
98reply = NULL
99ok
100test parsing: 'SET \n special_char_id value'
101id = '\n'
102variable = 'special_char_id'
103value = 'value'
104reply = NULL
105ok
106test parsing: 'SET \t special_char_id value'
107id = '\t'
108variable = 'special_char_id'
109value = 'value'
110reply = NULL
111ok