libosmocore/tests/ctrl/ctrl_test.ok

197 lines
3.6 KiB
Plaintext

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:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable\n'
parsing:
id = '1'
variable = 'variable\n'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ni\nable'
parsing:
id = '1'
variable = 'var\ni\nable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ti\table'
parsing:
id = '1'
variable = 'var\ti\table'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 var\ri\rable'
parsing:
id = '1'
variable = 'var\ri\rable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable value'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable value\n'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable multiple value tokens'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'GET 1 variable multiple value tokens\n'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value'
parsing:
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET 1 variable value\n'
parsing:
id = '1'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR 1 Command not found'
ok
test: 'SET weird_id variable value'
parsing:
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR weird_id Command not found'
ok
test: 'SET weird_id variable value\n'
parsing:
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR weird_id Command not found'
ok
test: 'SET 1 variable multiple value tokens'
parsing:
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:
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:
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:
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:
id = '\n'
variable = 'special_char_id'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR \n Command not found'
ok
test: 'SET \t special_char_id value'
parsing:
id = '\t'
variable = 'special_char_id'
value = 'value'
reply = '(null)'
handling:
replied: 'ERROR \t Command not found'
ok
test: 'GET_REPLY 1 variable OK'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
ok
test: 'SET_REPLY 1 variable OK'
parsing:
id = '1'
variable = 'variable'
value = '(null)'
reply = 'OK'
handling:
ok