1 test_get_parsing() 2 { 3 cp ${REF_DIR}/show_parsing.data ${CONFIG_DIR}/test 4 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" 14 } 15 16 prepare_get_parsing_multiline() { 17 cp ${REF_DIR}/show_parsing_multiline.data ${CONFIG_DIR}/sockd 18 } 19 20 test_get_parsing_multiline_package() 21 { 22 prepare_get_parsing_multiline 23 24 value=$(${UCI_Q} show sockd) 25 value_ref=$(cat ${REF_DIR}/show_parsing_multiline_package.result) 26 assertEquals "$value_ref" "$value" 27 } 28 29 test_get_parsing_multiline_section() 30 { 31 prepare_get_parsing_multiline 32 33 value=$(${UCI_Q} show sockd.instance0) 34 value_ref=$(cat ${REF_DIR}/show_parsing_multiline_section.result) 35 assertEquals "$value_ref" "$value" 36 } 37 38 test_get_parsing_multiline_option() 39 { 40 prepare_get_parsing_multiline 41 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" 45 }
This page was automatically generated by LXR 0.3.1. • OpenWrt