summaryrefslogtreecommitdiffstats
path: root/tests/ctrl/ctrl_test.ok
blob: 9c8877b2f6212e2f604447eb026ece2158fc19a7 (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
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 parsing: 'GET 1 variable'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable\n'
id = '1'
variable = 'variable\n'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 var\ni\nable'
id = '1'
variable = 'var\ni\nable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable value'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable value\n'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable multiple value tokens'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable multiple value tokens\n'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'SET 1 variable value'
id = '1'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET 1 variable value\n'
id = '1'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET weird_id variable value'
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET weird_id variable value\n'
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET 1 variable multiple value tokens'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = NULL
ok
test parsing: 'SET 1 variable multiple value tokens\n'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = NULL
ok
test parsing: 'SET 1 variable value_with_trailing_spaces  '
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces  '
reply = NULL
ok
test parsing: 'SET 1 variable value_with_trailing_spaces  \n'
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces  '
reply = NULL
ok
test parsing: 'SET \n special_char_id value'
id = '\n'
variable = 'special_char_id'
value = 'value'
reply = NULL
ok
test parsing: 'SET \t special_char_id value'
id = '\t'
variable = 'special_char_id'
value = 'value'
reply = NULL
ok