diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 14:13:23 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-02-01 14:16:01 +0300 |
commit | cdbd2f8b36b555cb56b510fccf29fb5a12d66f80 (patch) | |
tree | 89b3860cc9e6ac562832e231a1d107a2ab23e2ab /mod/mod-package-version-details.cxx | |
parent | ccb8a1c22726d15da6f823785e9f9afef751811f (diff) |
Add support for enable clause in tests package manifest value
Diffstat (limited to 'mod/mod-package-version-details.cxx')
-rw-r--r-- | mod/mod-package-version-details.cxx | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index b1729bb..35a1a22 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -453,7 +453,10 @@ handle (request& rq, response& rs) // // Print test dependencies of the specific type. // - auto print_tests = [&pkg, &s, &print_dependency] (test_dependency_type dt) + auto print_tests = [&pkg, + &s, + &print_dependency, + full] (test_dependency_type dt) { string id; @@ -492,6 +495,20 @@ handle (request& rq, response& rs) print_dependency (td); + if (td.enable || td.reflect) + { + if (full) + { + if (td.enable) + s << " ? (" << *td.enable << ')'; + + if (td.reflect) + s << ' ' << *td.reflect; + } + else + s << " ..."; + } + s << ~SPAN << ~TD << ~TR; |