From 28106f96de8ae5cdb3a0ee0e3a8a8185551e3b00 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 20 Jan 2017 20:25:59 +0300 Subject: Add support for comparison of test command output to a file --- build2/test/script/token.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build2/test/script/token.cxx') 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); } -- cgit v1.1