aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-22 16:10:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:34 +0200
commit132c1f2bb19c92722274c69a190c2f71b801b602 (patch)
treece141b9b866582966262d01777dbf7e9e01e324e /tests/test/script
parent31e16a7413813293e3cccb6799eaa08b7af5af4e (diff)
Add support for no-newline redirects in testscript
The no-newline operators are '<:', '>:', '<<:', and '>>:'.
Diffstat (limited to 'tests/test/script')
-rw-r--r--tests/test/script/testscript26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test/script/testscript b/tests/test/script/testscript
index b1cf0a5..9b43467 100644
--- a/tests/test/script/testscript
+++ b/tests/test/script/testscript
@@ -40,3 +40,29 @@ EOI
foo
bar
EOE
+
+# No-newline tests.
+#
+# @@ TMP Need does not compare test.
+#
+$* -i 1 <:"foo" >:"foo" # no-newline-str
+#$* -i 1 <:"foo" >!"foo" # no-newline-str-fail1
+#$* -i 1 <"foo" >:!"foo" # no-newline-str-fail2
+
+$* -i 1 <<:EOI >>:EOO # no-newline-doc
+foo
+EOI
+foo
+EOO
+
+#$* -i 1 <<:EOI >>!EOO # no-newline-doc-fail1
+#foo
+#EOI
+#foo
+#EOO
+
+#$* -i 1 <<EOI >>:!EOO # no-newline-doc-fail2
+#foo
+#EOI
+#foo
+#EOO