diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-10-26 12:32:46 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | 5daf46f700217521e8ba90c4be0e0369105544df (patch) | |
tree | 5ef8e2102aebd0383c1f000512151571c6edb38d /unit-tests/test/script/parser | |
parent | 43378e3827fd0d17325646c40c76bab9db1da19a (diff) |
Add support of file redirects to testscript runner
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r-- | unit-tests/test/script/parser/buildfile | 3 | ||||
-rw-r--r-- | unit-tests/test/script/parser/redirect.test | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/unit-tests/test/script/parser/buildfile b/unit-tests/test/script/parser/buildfile index 18acd20..b053971 100644 --- a/unit-tests/test/script/parser/buildfile +++ b/unit-tests/test/script/parser/buildfile @@ -11,6 +11,7 @@ filesystem config/{utility init operation} dump types-parsers \ test/{target script/{token lexer parser script}} exe{driver}: cxx{driver} ../../../../build2/cxx{$src} $libs \ -test{pre-parse expansion here-document command-re-parse scope setup-teardown} +test{pre-parse expansion redirect here-document command-re-parse scope \ + setup-teardown} include ../../../../build2/ diff --git a/unit-tests/test/script/parser/redirect.test b/unit-tests/test/script/parser/redirect.test new file mode 100644 index 0000000..83b40cd --- /dev/null +++ b/unit-tests/test/script/parser/redirect.test @@ -0,0 +1,5 @@ +$* <<EOI >>EOO # file +cmd 0<<<a 1>>>b 2>>>&c +EOI +cmd <<<a >>>b 2>>>&c +EOO |