Max | 70c7d41 | 2017-02-24 13:59:14 +0100 | [diff] [blame] | 1 | Checking ctrl types... |
Neels Hofmeyr | 7c1ec8c | 2017-03-02 14:32:52 +0100 | [diff] [blame] | 2 | ctrl type 0 is (unknown) -> 0 OK |
Max | 70c7d41 | 2017-02-24 13:59:14 +0100 | [diff] [blame] | 3 | ctrl type 1 is GET -> 1 OK |
4 | ctrl type 2 is SET -> 2 OK | ||||
5 | ctrl type 3 is GET_REPLY -> 3 OK | ||||
6 | ctrl type 4 is SET_REPLY -> 4 OK | ||||
7 | ctrl type 5 is TRAP -> 5 OK | ||||
8 | ctrl type 6 is ERROR -> 6 OK | ||||
9 | ctrl type 64 is unknown 0x40 [PARSE FAILED] | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 10 | test: 'GET 1 variable' |
11 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 12 | id = '1' |
13 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 14 | value = '(null)' |
15 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 16 | handling: |
17 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 18 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 19 | test: 'GET 1 variable\n' |
20 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 21 | id = '1' |
22 | variable = 'variable\n' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 23 | value = '(null)' |
24 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 25 | handling: |
26 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 27 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 28 | test: 'GET 1 var\ni\nable' |
29 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 30 | id = '1' |
31 | variable = 'var\ni\nable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 32 | value = '(null)' |
33 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 34 | handling: |
35 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 36 | ok |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 37 | test: 'GET 1 var\ti\table' |
38 | parsing: | ||||
39 | id = '1' | ||||
40 | variable = 'var\ti\table' | ||||
41 | value = '(null)' | ||||
42 | reply = '(null)' | ||||
43 | handling: | ||||
44 | replied: 'ERROR 1 Command not found' | ||||
45 | ok | ||||
46 | test: 'GET 1 var\ri\rable' | ||||
47 | parsing: | ||||
48 | id = '1' | ||||
49 | variable = 'var\ri\rable' | ||||
50 | value = '(null)' | ||||
51 | reply = '(null)' | ||||
52 | handling: | ||||
53 | replied: 'ERROR 1 Command not found' | ||||
54 | ok | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 55 | test: 'GET 1 variable value' |
56 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 57 | id = '1' |
58 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 59 | value = '(null)' |
60 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 61 | handling: |
62 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 63 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 64 | test: 'GET 1 variable value\n' |
65 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 66 | id = '1' |
67 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 68 | value = '(null)' |
69 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 70 | handling: |
71 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 72 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 73 | test: 'GET 1 variable multiple value tokens' |
74 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 75 | id = '1' |
76 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 77 | value = '(null)' |
78 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 79 | handling: |
80 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 81 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 82 | test: 'GET 1 variable multiple value tokens\n' |
83 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 84 | id = '1' |
85 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 86 | value = '(null)' |
87 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 88 | handling: |
89 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 90 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 91 | test: 'SET 1 variable value' |
92 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 93 | id = '1' |
94 | variable = 'variable' | ||||
95 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 96 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 97 | handling: |
98 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 99 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 100 | test: 'SET 1 variable value\n' |
101 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 102 | id = '1' |
103 | variable = 'variable' | ||||
104 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 105 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 106 | handling: |
107 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 108 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 109 | test: 'SET weird_id variable value' |
110 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 111 | id = 'weird_id' |
112 | variable = 'variable' | ||||
113 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 114 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 115 | handling: |
116 | replied: 'ERROR weird_id Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 117 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 118 | test: 'SET weird_id variable value\n' |
119 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 120 | id = 'weird_id' |
121 | variable = 'variable' | ||||
122 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 123 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 124 | handling: |
125 | replied: 'ERROR weird_id Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 126 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 127 | test: 'SET 1 variable multiple value tokens' |
128 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 129 | id = '1' |
130 | variable = 'variable' | ||||
131 | value = 'multiple value tokens' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 132 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 133 | handling: |
134 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 135 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 136 | test: 'SET 1 variable multiple value tokens\n' |
137 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 138 | id = '1' |
139 | variable = 'variable' | ||||
140 | value = 'multiple value tokens' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 141 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 142 | handling: |
143 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 144 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 145 | test: 'SET 1 variable value_with_trailing_spaces ' |
146 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 147 | id = '1' |
148 | variable = 'variable' | ||||
149 | value = 'value_with_trailing_spaces ' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 150 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 151 | handling: |
152 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 153 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 154 | test: 'SET 1 variable value_with_trailing_spaces \n' |
155 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 156 | id = '1' |
157 | variable = 'variable' | ||||
158 | value = 'value_with_trailing_spaces ' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 159 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 160 | handling: |
161 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 162 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 163 | test: 'SET \n special_char_id value' |
164 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 165 | id = '\n' |
166 | variable = 'special_char_id' | ||||
167 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 168 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 169 | handling: |
170 | replied: 'ERROR \n Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 171 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 172 | test: 'SET \t special_char_id value' |
173 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 174 | id = '\t' |
175 | variable = 'special_char_id' | ||||
176 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 177 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 178 | handling: |
179 | replied: 'ERROR \t Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 180 | ok |
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 181 | test: 'GET_REPLY 1 variable OK' |
182 | parsing: | ||||
183 | id = '1' | ||||
184 | variable = 'variable' | ||||
185 | value = '(null)' | ||||
186 | reply = 'OK' | ||||
187 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 188 | ok |
189 | test: 'SET_REPLY 1 variable OK' | ||||
190 | parsing: | ||||
191 | id = '1' | ||||
192 | variable = 'variable' | ||||
193 | value = '(null)' | ||||
194 | reply = 'OK' | ||||
195 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 196 | ok |