From 3c57a25a4d6a80301ece82ab33f1394e34f8b873 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 23 Jul 2015 09:59:52 +0200 Subject: Basic test support --- build/diagnostics | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'build/diagnostics') diff --git a/build/diagnostics b/build/diagnostics index 3f05688..2eaaa84 100644 --- a/build/diagnostics +++ b/build/diagnostics @@ -5,6 +5,7 @@ #ifndef BUILD_DIAGNOSTICS #define BUILD_DIAGNOSTICS +#include // size_t #include #include #include @@ -52,7 +53,7 @@ namespace build // Action phrases, e.g., "configure update exe{foo}", "updating exe{foo}", - // and "updating exe{foo} already configured". + // and "updating exe{foo} is configured". // struct action; class target; @@ -64,17 +65,25 @@ namespace build diag_doing (const action&, const target&); std::string - diag_already_done (const action&, const target&); + diag_done (const action&, const target&); - // Print process commmand line. + // Print process commmand line. If the number of elements is specified + // (or the second version is used), then it will print the piped multi- + // process command line, if present. In this case, the expected format + // is as follows: + // + // name1 arg arg ... nullptr + // name2 arg arg ... nullptr + // ... + // nameN arg arg ... nullptr nullptr // void - print_process (const char* const* args); + print_process (const char* const* args, std::size_t n = 0); inline void print_process (const cstrings& args) { - print_process (args.data ()); + print_process (args.data (), args.size ()); } // Trace verbosity level. -- cgit v1.1