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: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 12 | type = 'GET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 13 | id = '1' |
14 | variable = 'variable' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 15 | value = '(null)' |
16 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 17 | handling: |
18 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 19 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 20 | test: 'GET 1 variable\n' |
21 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 22 | type = 'GET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 23 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 24 | variable = 'variable' |
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 25 | value = '(null)' |
26 | reply = '(null)' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 27 | handling: |
28 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 29 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 30 | test: 'GET 1 var\ni\nable' |
31 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 32 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 33 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 34 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 35 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 36 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 37 | ok |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 38 | test: 'GET 1 var\ti\table' |
39 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 40 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 41 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 42 | reply = 'GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 43 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 44 | replied: 'ERROR 1 GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 45 | ok |
46 | test: 'GET 1 var\ri\rable' | ||||
47 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 48 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 49 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 50 | reply = 'GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 51 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 52 | replied: 'ERROR 1 GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 53 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 54 | test: 'GET 1 variable value' |
55 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 56 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 57 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 58 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 59 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 60 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 61 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 62 | test: 'GET 1 variable value\n' |
63 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 64 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 65 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 66 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 67 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 68 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 69 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 70 | test: 'GET 1 variable multiple value tokens' |
71 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 72 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 73 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 74 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 75 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 76 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 77 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 78 | test: 'GET 1 variable multiple value tokens\n' |
79 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 80 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 81 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 82 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 83 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 84 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 85 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 86 | test: 'SET 1 variable value' |
87 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 88 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 89 | id = '1' |
90 | variable = 'variable' | ||||
91 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 92 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 93 | handling: |
94 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 95 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 96 | test: 'SET 1 variable value\n' |
97 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 98 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 99 | id = '1' |
100 | variable = 'variable' | ||||
101 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 102 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 103 | handling: |
104 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 105 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 106 | test: 'SET weird_id variable value' |
107 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 108 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 109 | id = 'err' |
110 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 111 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 112 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 113 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 114 | test: 'SET weird_id variable value\n' |
115 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 116 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 117 | id = 'err' |
118 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 119 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 120 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 121 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 122 | test: 'SET 1 variable multiple value tokens' |
123 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 124 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 125 | id = '1' |
126 | variable = 'variable' | ||||
127 | value = 'multiple value tokens' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 128 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 129 | handling: |
130 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 131 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 132 | test: 'SET 1 variable multiple value tokens\n' |
133 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 134 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 135 | id = '1' |
136 | variable = 'variable' | ||||
137 | value = 'multiple value tokens' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 138 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 139 | handling: |
140 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 141 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 142 | test: 'SET 1 variable value_with_trailing_spaces ' |
143 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 144 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 145 | id = '1' |
146 | variable = 'variable' | ||||
147 | value = 'value_with_trailing_spaces ' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 148 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 149 | handling: |
150 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 151 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 152 | test: 'SET 1 variable value_with_trailing_spaces \n' |
153 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 154 | type = 'SET' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 155 | id = '1' |
156 | variable = 'variable' | ||||
157 | value = 'value_with_trailing_spaces ' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 158 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 159 | handling: |
160 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 161 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 162 | test: 'SET \n special_char_id value' |
163 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 164 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 165 | id = 'err' |
166 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 167 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 168 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 169 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 170 | test: 'SET \t special_char_id value' |
171 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 172 | type = 'ERROR' (parse failure) |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 173 | id = 'err' |
174 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 175 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 176 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 177 | ok |
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 178 | test: 'GET_REPLY 1 variable OK' |
179 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 180 | type = 'GET_REPLY' |
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 181 | id = '1' |
182 | variable = 'variable' | ||||
183 | value = '(null)' | ||||
184 | reply = 'OK' | ||||
185 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 186 | ok |
187 | test: 'SET_REPLY 1 variable OK' | ||||
188 | parsing: | ||||
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 189 | type = 'SET_REPLY' |
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 190 | id = '1' |
191 | variable = 'variable' | ||||
192 | value = '(null)' | ||||
193 | reply = 'OK' | ||||
194 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 195 | ok |
Pau Espin Pedrol | b885ef8 | 2018-07-12 19:29:23 +0200 | [diff] [blame] | 196 | test: 'ERROR 1 some error message' |
197 | parsing: | ||||
198 | type = 'ERROR' (error received) | ||||
199 | id = '1' | ||||
200 | reply = 'some error message' | ||||
201 | handling: | ||||
202 | ok | ||||
203 | test: 'ERROR err some error message' | ||||
204 | parsing: | ||||
205 | type = 'ERROR' (error received) | ||||
206 | id = 'err' | ||||
207 | reply = 'some error message' | ||||
208 | handling: | ||||
209 | ok | ||||
Neels Hofmeyr | 6882b80 | 2018-04-05 02:14:12 +0200 | [diff] [blame] | 210 | |
211 | test_deferred_cmd | ||||
212 | get_test_defer called | ||||
213 | ctrl_handle_msg() returned 0 | ||||
Neels Hofmeyr | cdbc9af | 2018-04-03 16:51:49 +0200 | [diff] [blame] | 214 | invoking ctrl_test_defer_cb() asynchronously |
215 | ctrl_test_defer_cb called | ||||
Neels Hofmeyr | 6882b80 | 2018-04-05 02:14:12 +0200 | [diff] [blame] | 216 | success |