summaryrefslogtreecommitdiff
path: root/test/tests.d/060_batch
blob: 49d15e4e471939e4f8123ecfcf9f14b5d64fc412 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
}