3 cp ${REF_DIR}/show_parsing.data ${CONFIG_DIR}/test
5 assertFailWithNoReturn "${UCI_Q} show test."
6 assertFailWithNoReturn "${UCI_Q} show test.section."
7 assertFailWithNoReturn "${UCI_Q} show test.section.opt."
8 assertFailWithNoReturn "${UCI_Q} show test.section.opt.val."
9 assertFailWithNoReturn "${UCI_Q} show test.section.opt.val.qsdf.qsd"
10 assertFailWithNoReturn "${UCI_Q} show test.section.opt.valqsqsd"
11 assertFailWithNoReturn "${UCI_Q} show test.nilsection"
12 assertFailWithNoReturn "${UCI_Q} show test.nilsection.nilopt"
13 assertFailWithNoReturn "${UCI_Q} show test.section.nilopt"
16 prepare_get_parsing_multiline() {
17 cp ${REF_DIR}/show_parsing_multiline.data ${CONFIG_DIR}/sockd
20 test_get_parsing_multiline_package()
22 prepare_get_parsing_multiline
24 value=$(${UCI_Q} show sockd)
25 value_ref=$(cat ${REF_DIR}/show_parsing_multiline_package.result)
26 assertEquals "$value_ref" "$value"
29 test_get_parsing_multiline_section()
31 prepare_get_parsing_multiline
33 value=$(${UCI_Q} show sockd.instance0)
34 value_ref=$(cat ${REF_DIR}/show_parsing_multiline_section.result)
35 assertEquals "$value_ref" "$value"
38 test_get_parsing_multiline_option()
40 prepare_get_parsing_multiline
42 value=$(${UCI_Q} show sockd.instance0.extra_config)
43 value_ref=$(cat ${REF_DIR}/show_parsing_multiline_option.result)
44 assertEquals "$value_ref" "$value"