From: Yousong Zhou Date: Thu, 9 Apr 2015 13:48:46 +0000 (+0800) Subject: tests: add test coverage for comment lines within batch commands. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a2bbe06ed1aced403cd321753722e34628b453d8;p=oweals%2Fuci.git tests: add test coverage for comment lines within batch commands. Signed-off-by: Yousong Zhou --- diff --git a/test/references/batch_comments.result b/test/references/batch_comments.result new file mode 100644 index 0000000..c726bad --- /dev/null +++ b/test/references/batch_comments.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 index 49d15e4..40f473b 100644 --- a/test/tests.d/060_batch +++ b/test/tests.d/060_batch @@ -15,3 +15,29 @@ EOF assertSameFile "${REF_DIR}/batch_set.result" "${CONFIG_DIR}/batch_set" } +test_batch_comments() +{ + touch ${CONFIG_DIR}/batch_comments + + ${UCI} batch <