From: Yousong Zhou Date: Tue, 16 Dec 2014 07:00:10 +0000 (+0800) Subject: tests: add test coverage for `uci batch' command. X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=aa4113169d0ec107c66caaeb639f4416a0ef847f;p=project%2Fuci.git tests: add test coverage for `uci batch' command. Signed-off-by: Yousong Zhou --- diff --git a/test/references/batch_set.result b/test/references/batch_set.result new file mode 100644 index 0000000..c726bad --- /dev/null +++ b/test/references/batch_set.result @@ -0,0 +1,9 @@ + +config section 'SEC0' + option option0 'value0' + option option1 '"Hello, + World"' + +config section 'SEC1' + option option0 'value1' + diff --git a/test/tests.d/060_batch b/test/tests.d/060_batch new file mode 100644 index 0000000..49d15e4 --- /dev/null +++ b/test/tests.d/060_batch @@ -0,0 +1,17 @@ +test_batch_set() +{ + touch ${CONFIG_DIR}/batch_set + + ${UCI} batch <