49d15e4e471939e4f8123ecfcf9f14b5d64fc412
[project/uci.git] / test / tests.d / 060_batch
1 test_batch_set()
2 {
3         touch ${CONFIG_DIR}/batch_set
4
5         ${UCI} batch <<EOF
6 set batch_set.SEC0='section'
7 set batch_set.SEC0.option0='value0'
8 set batch_set.SEC0.option1='"Hello,
9 '"  World\""
10 set batch_set.SEC1='section'
11 set batch_set.SEC1.option0="value1"
12
13 EOF
14         ${UCI} commit
15         assertSameFile "${REF_DIR}/batch_set.result" "${CONFIG_DIR}/batch_set"
16 }
17