aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-24 15:38:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:35 +0200
commit83c28bc98a3cb439c3dbb3824f4ede4eb14798a3 (patch)
tree1d2ac9c673278c1d854b0843719e05f58b07b503 /tests/test/script/runner/testscript
parent5bfa47e072eb0592a4df15dbf68ce3ea76383905 (diff)
Rename tests/test/script/ to tests/test/script/runner/
Diffstat (limited to 'tests/test/script/runner/testscript')
-rw-r--r--tests/test/script/runner/testscript72
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/test/script/runner/testscript b/tests/test/script/runner/testscript
new file mode 100644
index 0000000..4d5d3b3
--- /dev/null
+++ b/tests/test/script/runner/testscript
@@ -0,0 +1,72 @@
+$*
+$* -i 0 <foo
+$* -o foo >foo
+$* -o foo >-
+$* -e foo 2>-
+
+$* -o foo -o bar >>EOO
+foo
+bar
+EOO
+
+$* -i 1 <<EOI >>EOO
+foo
+bar
+EOI
+foo
+bar
+EOO
+
+$* -i 2 <<EOI 2>>EOE
+foo
+bar
+EOI
+foo
+bar
+EOE
+
+$* -i 2 -s 1 <<EOI 2>>EOE != 0
+foo
+bar
+EOI
+foo
+bar
+EOE
+
+$* -i 2 -o baz -s 10 <<EOI 1>baz 2>>EOE == 10
+foo
+bar
+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
+#\