diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-09 15:40:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-09 15:40:05 +0200 |
commit | 1a46a0a1c3b0b463e13c46550998a3df1db0fdbe (patch) | |
tree | a0ac3a3d1bad08842fdc8d09a9978b722e8a813f /build2/test/rule.cxx | |
parent | 9f5c4c1ae3bff517eefb39130287016514fb31c7 (diff) |
Implement test.target variable
The plan is to use it for the portable path conversions.
Diffstat (limited to 'build2/test/rule.cxx')
-rw-r--r-- | build2/test/rule.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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<target_triplet> (t["test.target"])); + text << "test " << t << " with " << ts << " on " << tt; + } script::parser p; script::script s (t, ts, wd); |