libosmocore/tests/ctrl/ctrl_test.ok

112 lines
2.2 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 parsing: 'GET 1 variable'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable\n'
id = '1'
variable = 'variable\n'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 var\ni\nable'
id = '1'
variable = 'var\ni\nable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable value'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable value\n'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable multiple value tokens'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'GET 1 variable multiple value tokens\n'
id = '1'
variable = 'variable'
value = NULL
reply = NULL
ok
test parsing: 'SET 1 variable value'
id = '1'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET 1 variable value\n'
id = '1'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET weird_id variable value'
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET weird_id variable value\n'
id = 'weird_id'
variable = 'variable'
value = 'value'
reply = NULL
ok
test parsing: 'SET 1 variable multiple value tokens'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = NULL
ok
test parsing: 'SET 1 variable multiple value tokens\n'
id = '1'
variable = 'variable'
value = 'multiple value tokens'
reply = NULL
ok
test parsing: 'SET 1 variable value_with_trailing_spaces '
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces '
reply = NULL
ok
test parsing: 'SET 1 variable value_with_trailing_spaces \n'
id = '1'
variable = 'variable'
value = 'value_with_trailing_spaces '
reply = NULL
ok
test parsing: 'SET \n special_char_id value'
id = '\n'
variable = 'special_char_id'
value = 'value'
reply = NULL
ok
test parsing: 'SET \t special_char_id value'
id = '\t'
variable = 'special_char_id'
value = 'value'
reply = NULL
ok