From cdbd2f8b36b555cb56b510fccf29fb5a12d66f80 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Feb 2024 14:13:23 +0300 Subject: Add support for enable clause in tests package manifest value --- mod/mod-build-task.cxx | 1 + mod/mod-package-version-details.cxx | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx index 20a3518..1c21c3a 100644 --- a/mod/mod-build-task.cxx +++ b/mod/mod-build-task.cxx @@ -386,6 +386,7 @@ handle (request& rq, response& rs) td.type, td.buildtime, move (td.constraint), + move (td.enable), move (td.reflect)); } 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; -- cgit v1.1