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 /unit-tests/test/script/lexer | |
parent | 5f55069b5bd01f2d5c157fa360fda400da6ba01f (diff) |
Add support for >! test command redirect
Diffstat (limited to 'unit-tests/test/script/lexer')
-rw-r--r-- | unit-tests/test/script/lexer/command-expansion.test | 18 | ||||
-rw-r--r-- | unit-tests/test/script/lexer/command-line.test | 9 |
2 files changed, 27 insertions, 0 deletions
diff --git a/unit-tests/test/script/lexer/command-expansion.test b/unit-tests/test/script/lexer/command-expansion.test index d405de6..ffbb944 100644 --- a/unit-tests/test/script/lexer/command-expansion.test +++ b/unit-tests/test/script/lexer/command-expansion.test @@ -68,6 +68,24 @@ test.arguments = command-expansion EOO } +: trace-redirect +: +{ + : out + : + $* <:"1>!" >>EOO + '1' + >! + EOO + + : arg-out + : + $* <:"1 >!" >>EOO + '1 ' + >! + EOO +} + : merge-redirect : { diff --git a/unit-tests/test/script/lexer/command-line.test b/unit-tests/test/script/lexer/command-line.test index 57fcfdf..adc8cd1 100644 --- a/unit-tests/test/script/lexer/command-line.test +++ b/unit-tests/test/script/lexer/command-line.test @@ -82,6 +82,15 @@ test.arguments = command-line <newline> EOO + : trace + : + $* <"cmd 1>!" >>EOO + 'cmd' + '1' + >! + <newline> + EOO + : merge : $* <"cmd 1>&2" >>EOO |