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 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
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: 'GET 1 variable'
parsing:
type = 'GET'
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable\n'
parsing:
type = 'GET'
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ni\nable'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET with trailing characters'
handling:
replied: 'ERROR 1 GET with trailing characters'
ok
test: 'GET 1 var\ti\table'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET variable contains invalid characters'
handling:
replied: 'ERROR 1 GET variable contains invalid characters'
ok
test: 'GET 1 var\ri\rable'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET variable contains invalid characters'
handling:
replied: 'ERROR 1 GET variable contains invalid characters'
ok
test: 'GET 1 variable value'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET with trailing characters'
handling:
replied: 'ERROR 1 GET with trailing characters'
ok
test: 'GET 1 variable value\n'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET with trailing characters'
handling:
replied: 'ERROR 1 GET with trailing characters'
ok
test: 'GET 1 variable multiple value tokens'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET with trailing characters'
handling:
replied: 'ERROR 1 GET with trailing characters'
ok
test: 'GET 1 variable multiple value tokens\n'
parsing:
type = 'ERROR' (parse failure)
id = '1'
reply = 'GET with trailing characters'
handling:
replied: 'ERROR 1 GET with trailing characters'
ok
test: 'SET 1 variable value'
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value\n'
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET weird_id variable value'
parsing:
type = 'ERROR' (parse failure)
id = 'err'
reply = 'Invalid message ID number'
handling:
replied: 'ERROR err Invalid message ID number'
ok
test: 'SET weird_id variable value\n'
parsing:
type = 'ERROR' (parse failure)
id = 'err'
reply = 'Invalid message ID number'
handling:
replied: 'ERROR err Invalid message ID number'
ok
test: 'SET 1 variable multiple value tokens'
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable multiple value tokens\n'
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value_with_trailing_spaces '
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces '
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value_with_trailing_spaces \n'
parsing:
type = 'SET'
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces '
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET \n special_char_id value'
parsing:
type = 'ERROR' (parse failure)
id = 'err'
reply = 'Invalid message ID number'
handling:
replied: 'ERROR err Invalid message ID number'
ok
test: 'SET \t special_char_id value'
parsing:
type = 'ERROR' (parse failure)
id = 'err'
reply = 'Invalid message ID number'
handling:
replied: 'ERROR err Invalid message ID number'
ok
test: 'GET_REPLY 1 variable OK'
parsing:
type = 'GET_REPLY'
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
ok
test: 'SET_REPLY 1 variable OK'
parsing:
type = 'SET_REPLY'
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
ok
test: 'ERROR 1 some error message'
parsing:
type = 'ERROR' (error received)
id = '1'
reply = 'some error message'
handling:
ok
test: 'ERROR err some error message'
parsing:
type = 'ERROR' (error received)
id = 'err'
reply = 'some error message'
handling:
ok
test_deferred_cmd
get_test_defer called
ctrl_handle_msg() returned 0
invoking ctrl_test_defer_cb() asynchronously
ctrl_test_defer_cb called
success
|