3 cp ${REF_DIR}/get_parsing.data ${CONFIG_DIR}/test
5 assertFailWithNoReturn "${UCI_Q} get test."
6 assertFailWithNoReturn "${UCI_Q} get test.section."
7 assertFailWithNoReturn "${UCI_Q} get test.section.opt."
8 assertFailWithNoReturn "${UCI_Q} get test.section.opt.val."
9 assertFailWithNoReturn "${UCI_Q} get test.section.opt.val.qsdf.qsd"
10 assertFailWithNoReturn "${UCI_Q} get test.section.opt.valqsqsd"
13 test_get_section_index_parsing()
15 cp ${REF_DIR}/get_parsing.data ${CONFIG_DIR}/test
17 assertFailWithNoReturn "${UCI_Q} get test.@"
18 assertFailWithNoReturn "${UCI_Q} get test.@zer."
19 assertFailWithNoReturn "${UCI_Q} get test.@."
20 assertFailWithNoReturn "${UCI_Q} get test.@zer[1]"
21 assertFailWithNoReturn "${UCI_Q} get test.@.opt"
22 assertFailWithNoReturn "${UCI_Q} get test.@[28]"
23 assertFailWithNoReturn "${UCI_Q} get test.@[1]."
24 assertFailWithNoReturn "${UCI_Q} get test.@[1].val."
29 cp ${REF_DIR}/get.data ${CONFIG_DIR}/test
30 value=$($UCI get test.section.opt)
31 assertEquals 'val' "$value"
34 test_get_option_multiline()
36 cp ${REF_DIR}/get_multiline.data ${CONFIG_DIR}/test
37 value="$($UCI get test.section.opt)"
39 assertEquals '"Hello, World.
45 cp ${REF_DIR}/get.data ${CONFIG_DIR}/test
46 type=$($UCI get test.section)
47 assertEquals 'type' "$type"