aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest-serializer
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manifest-serializer')
-rw-r--r--tests/manifest-serializer/driver.in4
-rw-r--r--tests/manifest-serializer/testscript55
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
:
{