aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/script.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/script.cxx')
-rw-r--r--build2/test/script/script.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/build2/test/script/script.cxx b/build2/test/script/script.cxx
index c5cede8..0fa9dc6 100644
--- a/build2/test/script/script.cxx
+++ b/build2/test/script/script.cxx
@@ -305,6 +305,23 @@ namespace build2
}
}
+ // command_type
+ //
+ ostream&
+ operator<< (ostream& o, command_type ct)
+ {
+ const char* s (nullptr);
+
+ switch (ct)
+ {
+ case command_type::test: s = ""; break;
+ case command_type::setup: s = "+"; break;
+ case command_type::teardown: s = "-"; break;
+ }
+
+ return o << s;
+ }
+
// redirect
//
redirect::