projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add test coverage for multi-line option value.
[project/uci.git]
/
test
/
tests.d
/
020_get
diff --git
a/test/tests.d/020_get
b/test/tests.d/020_get
index
ad19264
..
7fd30ba
100644
(file)
--- a/
test/tests.d/020_get
+++ b/
test/tests.d/020_get
@@
-31,6
+31,15
@@
test_get_option()
assertEquals 'val' "$value"
}
assertEquals 'val' "$value"
}
+test_get_option_multiline()
+{
+ cp ${REF_DIR}/get_multiline.data ${CONFIG_DIR}/test
+ value="$($UCI get test.section.opt)"
+ echo "$value"
+ assertEquals '"Hello, World.
+'\''' "$value"
+}
+
test_get_section()
{
cp ${REF_DIR}/get.data ${CONFIG_DIR}/test
test_get_section()
{
cp ${REF_DIR}/get.data ${CONFIG_DIR}/test