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' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 22 | variable = 'variable' |
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' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 31 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 32 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 33 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 34 | ok |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 35 | test: 'GET 1 var\ti\table' |
36 | parsing: | ||||
37 | id = '1' | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 38 | reply = 'GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 39 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 40 | replied: 'ERROR 1 GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 41 | ok |
42 | test: 'GET 1 var\ri\rable' | ||||
43 | parsing: | ||||
44 | id = '1' | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 45 | reply = 'GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 46 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 47 | replied: 'ERROR 1 GET variable contains invalid characters' |
Neels Hofmeyr | 1b8b152 | 2017-12-15 20:41:28 +0100 | [diff] [blame] | 48 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 49 | test: 'GET 1 variable value' |
50 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 51 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 52 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 53 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 54 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 55 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 56 | test: 'GET 1 variable value\n' |
57 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 58 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 59 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 60 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 61 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 62 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 63 | test: 'GET 1 variable multiple value tokens' |
64 | parsing: | ||||
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\n' |
71 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 72 | id = '1' |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 73 | reply = 'GET with trailing characters' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 74 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 75 | replied: 'ERROR 1 GET with trailing characters' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 76 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 77 | test: 'SET 1 variable value' |
78 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 79 | id = '1' |
80 | variable = 'variable' | ||||
81 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 82 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 83 | handling: |
84 | replied: 'ERROR 1 Command not found' | ||||
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\n' |
87 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 88 | id = '1' |
89 | variable = 'variable' | ||||
90 | value = 'value' | ||||
Neels Hofmeyr | 0ab6eca | 2017-12-16 01:03:37 +0100 | [diff] [blame] | 91 | reply = '(null)' |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 92 | handling: |
93 | replied: 'ERROR 1 Command not found' | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 94 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 95 | test: 'SET weird_id variable value' |
96 | parsing: | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 97 | id = 'err' |
98 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 99 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 100 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 101 | ok |
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 102 | test: 'SET weird_id variable value\n' |
103 | parsing: | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 104 | id = 'err' |
105 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 106 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 107 | replied: 'ERROR err Invalid message ID number' |
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 1 variable multiple value tokens' |
110 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 111 | id = '1' |
112 | variable = 'variable' | ||||
113 | value = 'multiple value tokens' | ||||
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 1 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 1 variable multiple value tokens\n' |
119 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 120 | id = '1' |
121 | variable = 'variable' | ||||
122 | value = 'multiple value tokens' | ||||
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 1 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 value_with_trailing_spaces ' |
128 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 129 | id = '1' |
130 | variable = 'variable' | ||||
131 | value = 'value_with_trailing_spaces ' | ||||
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 value_with_trailing_spaces \n' |
137 | parsing: | ||||
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 138 | id = '1' |
139 | variable = 'variable' | ||||
140 | value = 'value_with_trailing_spaces ' | ||||
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 \n special_char_id value' |
146 | parsing: | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 147 | id = 'err' |
148 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 149 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 150 | replied: 'ERROR err Invalid message ID number' |
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 \t special_char_id value' |
153 | parsing: | ||||
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 154 | id = 'err' |
155 | reply = 'Invalid message ID number' | ||||
Neels Hofmeyr | 83aee83 | 2017-12-16 05:38:37 +0100 | [diff] [blame] | 156 | handling: |
Neels Hofmeyr | 3da9aa6 | 2017-09-26 14:21:44 +0200 | [diff] [blame] | 157 | replied: 'ERROR err Invalid message ID number' |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 158 | ok |
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 159 | test: 'GET_REPLY 1 variable OK' |
160 | parsing: | ||||
161 | id = '1' | ||||
162 | variable = 'variable' | ||||
163 | value = '(null)' | ||||
164 | reply = 'OK' | ||||
165 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 166 | ok |
167 | test: 'SET_REPLY 1 variable OK' | ||||
168 | parsing: | ||||
169 | id = '1' | ||||
170 | variable = 'variable' | ||||
171 | value = '(null)' | ||||
172 | reply = 'OK' | ||||
173 | handling: | ||||
Neels Hofmeyr | 6769ad6 | 2017-12-16 04:01:54 +0100 | [diff] [blame] | 174 | ok |