diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-27 02:32:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-31 15:54:33 +0300 |
commit | 749f748ae6ded6e229214d2dddf3c45482bffbd3 (patch) | |
tree | c504c8b225db01c8c152b3772467d16c036a42fc /tests/test/script/runner/redirect.test | |
parent | e61a287832532124a1a90a8bb9cc0f61f3a4db92 (diff) |
Add support for test command pipe, expression and command-if
Diffstat (limited to 'tests/test/script/runner/redirect.test')
-rw-r--r-- | tests/test/script/runner/redirect.test | 52 |
1 files changed, 10 insertions, 42 deletions
diff --git a/tests/test/script/runner/redirect.test b/tests/test/script/runner/redirect.test index 7cb6316..cfc12c5 100644 --- a/tests/test/script/runner/redirect.test +++ b/tests/test/script/runner/redirect.test @@ -9,6 +9,16 @@ b += --no-column ps = ($cxx.target.class != 'windows' ? '/' : '\') # Path separator. psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex. +: pass +: +{ + $c <'$* -i 1 -e bar <| >| 2>|'; + cat <<EOI >=buildfile; + test{testscript}: $target + EOI + $0 --jobs 1 --quiet test <foo >foo 2>bar +} + : null : { @@ -540,45 +550,3 @@ psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex. EOI $b } - -# @@ That will probably become redundant when builtins and process obtain file -# descriptors uniformly. -# -: builtins -: -{ - : out-null - : - $c <'echo "abc" >-'; - $b - - : err-null - : - $c <'echo "abc" 1>&2 2>-'; - $b - - : in-str - : - $c <'echo <foo 1>-'; - $b - - : out-str - : - $c <'echo "foo" >foo'; - $b - - : err-str - : - $c <'echo "foo" 2>foo 1>&2'; - $b - - : inout-str - : - $c <'cat <foo >foo'; - $b - - : inerr-str - : - $c <'cat <foo 2>foo 1>&2'; - $b -} |