]> pilppa.org Git - uci.git/blobdiff - test/tests.d/030_set
Add parsing tests for get, set and show
[uci.git] / test / tests.d / 030_set
index 8f695ed944f16880188c5914e882731238e0ea54..137a955f2d05f5a1135233432f8d814da508bdad 100644 (file)
@@ -1,3 +1,13 @@
+test_set_parsing()
+{
+       cp ${REF_DIR}/set_parsing.data ${CONFIG_DIR}/test
+
+       assertFailWithNoReturn "${UCI} set test.=val"
+       assertFailWithNoReturn "${UCI} set test.section.=val"
+       assertFailWithNoReturn "${UCI} set test.section.opt.=val"
+       assertFailWithNoReturn "${UCI} set test.section.opt.zflk=val"
+}
+
 test_set_named_section()
 {
        touch ${CONFIG_DIR}/set