Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
--- /dev/null
+
+config section 'SEC0'
+ option option0 'value0'
+ option option1 '"Hello,
+ World"'
+
+config section 'SEC1'
+ option option0 'value1'
+
--- /dev/null
+test_batch_set()
+{
+ touch ${CONFIG_DIR}/batch_set
+
+ ${UCI} batch <<EOF
+set batch_set.SEC0='section'
+set batch_set.SEC0.option0='value0'
+set batch_set.SEC0.option1='"Hello,
+'" World\""
+set batch_set.SEC1='section'
+set batch_set.SEC1.option0="value1"
+
+EOF
+ ${UCI} commit
+ assertSameFile "${REF_DIR}/batch_set.result" "${CONFIG_DIR}/batch_set"
+}
+