diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-16 17:23:54 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-16 17:23:54 +0200 |
commit | 3ab61fbc2ce25afa617ed6bb50c2f8d701beeaba (patch) | |
tree | aa1357f78905a3383871c0cdd55ef384f564780e /build2/test/script/script | |
parent | 75152526696fc024628796f0633ed695d5ebc49c (diff) |
Add support for passing target name to testscript via test variable
Such a targets is automatically resolved and converted to path.
Diffstat (limited to 'build2/test/script/script')
-rw-r--r-- | build2/test/script/script | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/test/script/script b/build2/test/script/script index d68a684..714e2c5 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -283,10 +283,12 @@ namespace build2 lookup find (const variable&) const; - // As above but only look for buildfile variables. + // As above but only look for buildfile variables. If target_only is + // false then also look in scopes of the test target (this should only + // be done if the variable's visibility is target). // lookup - find_in_buildfile (const string&) const; + find_in_buildfile (const string&, bool target_only = true) const; // Return a value suitable for assignment. If the variable does not // exist in this scope's map, then a new one with the NULL value is |