From 3ab61fbc2ce25afa617ed6bb50c2f8d701beeaba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Dec 2016 17:23:54 +0200 Subject: Add support for passing target name to testscript via test variable Such a targets is automatically resolved and converted to path. --- build2/test/init.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build2/test/init.cxx') diff --git a/build2/test/init.cxx b/build2/test/init.cxx index bb85464..098718b 100644 --- a/build2/test/init.cxx +++ b/build2/test/init.cxx @@ -39,10 +39,12 @@ namespace build2 { auto& v (var_pool); - // Note: none are overridable. The test variable is a path with the - // true/false special values. + // Note: none are overridable. // - v.insert ("test", variable_visibility::target); + // The test variable is a name which can be a path (with the + // true/false special values) or a target name. + // + v.insert ("test", variable_visibility::target); v.insert ("test.input", variable_visibility::project); v.insert ("test.output", variable_visibility::project); v.insert ("test.roundtrip", variable_visibility::project); -- cgit v1.1