From fb34688841668e6e4c939395c8387feabe8ddfdf Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 30 Nov 2020 22:42:40 +0300 Subject: Add support for config.test.runner --- libbuild2/build/script/parser.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbuild2/build/script/parser.cxx') diff --git a/libbuild2/build/script/parser.cxx b/libbuild2/build/script/parser.cxx index 9021da1..04a257f 100644 --- a/libbuild2/build/script/parser.cxx +++ b/libbuild2/build/script/parser.cxx @@ -321,6 +321,16 @@ namespace build2 parse_here_documents (t, tt, p); assert (tt == type::newline); + // @@ Note that currently running programs via a runner (e.g., see + // test.runner) needs to be handled explicitly in ad hoc recipes. + // We could potentially run them via the runner implicitly, similar + // to how we do in the testscript. We would need then to match the + // command program path against the recipe target ad hoc member + // paths (test programs), to detect if it must be run via the + // runner. The runner path/options would need to be optionally + // passed to the environment constructor, similar to passing the + // script deadline. + // return move (p.first); } -- cgit v1.1