diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-20 20:25:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-24 14:53:00 +0300 |
commit | 28106f96de8ae5cdb3a0ee0e3a8a8185551e3b00 (patch) | |
tree | 8b912a7c9a2bd2ba1263695428d8343d022953a5 /build2/test/script/token.cxx | |
parent | eeed734583c2f553e71ae0bd78a4b6e7e4d9cc2b (diff) |
Add support for comparison of test command output to a file
Diffstat (limited to 'build2/test/script/token.cxx')
-rw-r--r-- | build2/test/script/token.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build2/test/script/token.cxx b/build2/test/script/token.cxx index 6086a63..a4d658a 100644 --- a/build2/test/script/token.cxx +++ b/build2/test/script/token.cxx @@ -33,18 +33,20 @@ namespace build2 case token_type::clean: os << q << '&' << v << q; break; case token_type::pipe: os << q << '|' << q; break; - case token_type::in_pass: os << q << "<+" << q; break; + case token_type::in_pass: os << q << "<|" << q; break; case token_type::in_null: os << q << "<-" << q; break; case token_type::in_str: os << q << '<' << v << q; break; case token_type::in_doc: os << q << "<<" << v << q; break; case token_type::in_file: os << q << "<<<" << q; break; - case token_type::out_pass: os << q << ">+" << q; break; + case token_type::out_pass: os << q << ">|" << q; break; case token_type::out_null: os << q << ">-" << q; break; case token_type::out_merge: os << q << ">&" << q; break; case token_type::out_str: os << q << '>' << v << q; break; case token_type::out_doc: os << q << ">>" << v << q; break; - case token_type::out_file: os << q << ">>>" << v << q; break; + case token_type::out_file_cmp: os << q << ">>>" << v << q; break; + case token_type::out_file_ovr: os << q << ">=" << v << q; break; + case token_type::out_file_app: os << q << ">+" << v << q; break; default: build2::token_printer (os, t, d); } |