diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-08 16:36:39 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-08 18:35:10 +0300 |
commit | 8b0fe501e77a1f4032a396b97ad317f09e160ee3 (patch) | |
tree | 54b59aa6fb696d12e2eaac711fe35246627bf0a4 /tests/manifest-serializer | |
parent | c66eacd1d56cebce6986217bf6ea321018323952 (diff) |
Add support for manifest serializing long lines mode
Diffstat (limited to 'tests/manifest-serializer')
-rw-r--r-- | tests/manifest-serializer/driver.in | 4 | ||||
-rw-r--r-- | tests/manifest-serializer/testscript | 55 |
2 files changed, 57 insertions, 2 deletions
diff --git a/tests/manifest-serializer/driver.in b/tests/manifest-serializer/driver.in index 7c4efad..2703d03 100644 --- a/tests/manifest-serializer/driver.in +++ b/tests/manifest-serializer/driver.in @@ -23,9 +23,9 @@ while read -r n; do break else if [ "$f" ]; then - f= + f= else - printf "\n" >&"$fd" + printf "\n" >&"$fd" fi printf "%s" "$v" >&"$fd" fi diff --git a/tests/manifest-serializer/testscript b/tests/manifest-serializer/testscript index d027b7a..c3da2c3 100644 --- a/tests/manifest-serializer/testscript +++ b/tests/manifest-serializer/testscript @@ -3,6 +3,7 @@ # license : MIT; see accompanying LICENSE file : stdout +: { $* <<EOI >>EOO @@ -38,6 +39,7 @@ } : file +: { $* <<EOI >=file; @@ -58,6 +60,7 @@ } : list +: { $* <<EOI >>EOO @@ -79,6 +82,58 @@ EOO } +: break-lines +: +{ + $* <<EOI >>EOO + + 1 + + name + foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + EOI + : 1 + name: foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\ + oooo + EOO +} + +: long-lines +: +{ + : file + : + { + $* --long-lines file <<EOI >=file; + + 1 + + name + foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + EOI + + cat file >>EOO + : 1 + name: foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + EOO + } + + : stdout + : + { + $* --long-lines <<EOI >>EOO + + 1 + + name + foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + EOI + : 1 + name: foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo + EOO + } +} + : version : { |