From 5daf46f700217521e8ba90c4be0e0369105544df Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 26 Oct 2016 12:32:46 +0300 Subject: Add support of file redirects to testscript runner --- unit-tests/test/script/parser/buildfile | 3 ++- unit-tests/test/script/parser/redirect.test | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 unit-tests/test/script/parser/redirect.test (limited to 'unit-tests/test/script/parser') 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 @@ +$* <>EOO # file +cmd 0<<>>b 2>>>&c +EOI +cmd <<>>b 2>>>&c +EOO -- cgit v1.1