diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-16 15:55:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-03-16 15:59:16 +0300 |
commit | d2b324a72fdf16fcd68e6ba7ca0280aa95de4b71 (patch) | |
tree | 08294a644e4e944280f561058248a332ac00874a /tests/test/script/runner | |
parent | 5f55069b5bd01f2d5c157fa360fda400da6ba01f (diff) |
Add support for >! test command redirect
Diffstat (limited to 'tests/test/script/runner')
-rw-r--r-- | tests/test/script/runner/redirect.test | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/test/script/runner/redirect.test b/tests/test/script/runner/redirect.test index 0535617..7c7fada 100644 --- a/tests/test/script/runner/redirect.test +++ b/tests/test/script/runner/redirect.test @@ -26,6 +26,53 @@ psr = ($cxx.target.class != 'windows' ? '/' : '\\') # Path separator in regex. $c <'$* -e foo 2>-' && $b : err } +: trace +: +{ + : default + : + $c <'$* -o foo -e bar >! 2>!' && $b + + : verbose + : + { + b += -v + + : out + : + $c <'$* -o foo >!' && $b >foo 2>>/~%EOE% + %test .+ with .+ on .+% + mkdir test/ + cd test/ + mkdir test/1/ + cd test/1/ + %.*/driver(.exe)? -o foo% + rm test/1/stderr + rm test/1/ + cd test/ + rm test/ + cd ./ + EOE + + : err + : + $c <'$* -e foo 2>!' && $b 2>>/~%EOE% + %test .+ with .+ on .+% + mkdir test/ + cd test/ + mkdir test/1/ + cd test/1/ + %.*/driver(.exe)? -e foo% + foo + rm test/1/stdout + rm test/1/ + cd test/ + rm test/ + cd ./ + EOE + } +} + : str : { |