From 1a46a0a1c3b0b463e13c46550998a3df1db0fdbe Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Jan 2017 15:40:05 +0200 Subject: Implement test.target variable The plan is to use it for the portable path conversions. --- build2/test/rule.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/test/rule.cxx') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 5851e2f..ccbf932 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -419,7 +419,10 @@ namespace build2 auto run = [&t, &wd] (testscript& ts) { if (verb) - text << "test " << t << " with " << ts; + { + const auto& tt (cast (t["test.target"])); + text << "test " << t << " with " << ts << " on " << tt; + } script::parser p; script::script s (t, ts, wd); -- cgit v1.1