Source
value'{"os_type":"linux","product_name":"Linux Distro","architecture":"x86_64","kernel_major":"1","kernel_minor":"2","kernel_patch":"3","kernel":"1.2.3-some-text","version_pretty":"Linux Distro x86_64 1.2.3-some-text","version_full":"version_full filled"}'
---
test case'#1 get full os info'
in
type os
key'system.sw.os[full]'
proc_version'file with full os info '
out
value'file with full os info'
return'SYSINFO_RET_OK'
---
test case'#2 get full os info'
in
type os
key'system.sw.os[full]'
proc_version''
out
value''
return'SYSINFO_RET_FAIL'
---
test case'#1 get short os info'
in
type os
key'system.sw.os[short]'
proc_version_sign'file with short os info '
out
value'file with short os info'
return'SYSINFO_RET_OK'
---
test case'#2 get short os info'
in
type os
key'system.sw.os[short]'
proc_version_sign''
out
value''
return'SYSINFO_RET_FAIL'
---
test case'#1 get name of the os'
in
type os
key'system.sw.os[name]'
os_release
FIELD1=123
FIELD2="123"
PRETTY_NAME="Linux123 v234"
FIELD3="123 123"
out
value'Linux123 v234'
return'SYSINFO_RET_OK'
---
test case'#2 get name of the os'
in
type os
key'system.sw.os[name]'
os_release
FIELD1=123
FIELD2="123"
PRETTY_NAME=Linux123
FIELD3="123 123"
out
value'Linux123'
return'SYSINFO_RET_OK'
---