aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/lexer/command-line.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-20 20:25:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-24 14:53:00 +0300
commit28106f96de8ae5cdb3a0ee0e3a8a8185551e3b00 (patch)
tree8b912a7c9a2bd2ba1263695428d8343d022953a5 /unit-tests/test/script/lexer/command-line.test
parenteeed734583c2f553e71ae0bd78a4b6e7e4d9cc2b (diff)
Add support for comparison of test command output to a file
Diffstat (limited to 'unit-tests/test/script/lexer/command-line.test')
-rw-r--r--unit-tests/test/script/lexer/command-line.test24
1 files changed, 18 insertions, 6 deletions
diff --git a/unit-tests/test/script/lexer/command-line.test b/unit-tests/test/script/lexer/command-line.test
index 8a73b3d..57fcfdf 100644
--- a/unit-tests/test/script/lexer/command-line.test
+++ b/unit-tests/test/script/lexer/command-line.test
@@ -64,11 +64,11 @@ test.arguments = command-line
{
: pass
:
- $* <"cmd <+ 1>+" >>EOO
+ $* <"cmd <| 1>|" >>EOO
'cmd'
- <+
+ <|
'1'
- >+
+ >|
<newline>
EOO
@@ -140,16 +140,28 @@ test.arguments = command-line
<newline>
EOO
- : file
+ : file-cmp
:
- $* <"cmd <<<in >>>out 2>>>&err" >>EOO
+ $* <"cmd <<<in >>>out 2>>>err" >>EOO
'cmd'
<<<
'in'
>>>
'out'
'2'
- >>>&
+ >>>
+ 'err'
+ <newline>
+ EOO
+
+ : file-write
+ :
+ $* <"cmd >=out 2>+err" >>EOO
+ 'cmd'
+ >=
+ 'out'
+ '2'
+ >+
'err'
<newline>
EOO