From f4b2107284329b12f595eba856072b79b824a63f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Nov 2016 16:37:44 +0200 Subject: Implement testscript command-if --- build2/test/script/runner.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build2/test/script/runner.cxx') diff --git a/build2/test/script/runner.cxx b/build2/test/script/runner.cxx index 8db31d9..1d6920a 100644 --- a/build2/test/script/runner.cxx +++ b/build2/test/script/runner.cxx @@ -702,6 +702,13 @@ namespace build2 check_output (p, osp, isp, c.out, ll, sp, "stdout"); check_output (p, esp, isp, c.err, ll, sp, "stderr"); } + + bool concurrent_runner:: + run_if (scope&, const command_expr& expr, size_t, const location&) + { + const command& c (expr.back ().pipe.back ()); // @@ TMP + return c.program.string () == "true"; // @@ TMP + } } } } -- cgit v1.1