diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-28 10:10:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | cd40097447ff2400cb420ec973c16dadd26e6cda (patch) | |
tree | bcd1c902d487e7a60ffffd5b02b7c608829fbc57 /build2/test/script/script | |
parent | e61874e76052d3600d6f10807248f92935f3dd61 (diff) |
Implement description support in testscript
Diffstat (limited to 'build2/test/script/script')
-rw-r--r-- | build2/test/script/script | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build2/test/script/script b/build2/test/script/script index a841d6c..7ce6708 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -139,6 +139,13 @@ namespace build2 ostream& operator<< (ostream&, const command&); + struct description + { + string id; + string summary; + string details; + }; + class script; class scope @@ -155,6 +162,8 @@ namespace build2 const path& id_path; // Id path ($@, relative in POSIX form). const dir_path& wd_path; // Working dir ($~, absolute and normalized). + optional<description> desc; + // Files and directories that must be automatically cleaned up when // the scope is left. If the path ends with a trailing slash, then it // is assumed to be to a directory, otherwise -- to a file. |