From 132c1f2bb19c92722274c69a190c2f71b801b602 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 22 Oct 2016 16:10:38 +0200 Subject: Add support for no-newline redirects in testscript The no-newline operators are '<:', '>:', '<<:', and '>>:'. --- tests/test/script/testscript | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests') 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 <>:!EOO # no-newline-doc-fail2 +#foo +#EOI +#foo +#EOO -- cgit v1.1