aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2024-02-01 14:13:23 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2024-02-01 14:16:01 +0300
commitcdbd2f8b36b555cb56b510fccf29fb5a12d66f80 (patch)
tree89b3860cc9e6ac562832e231a1d107a2ab23e2ab /mod
parentccb8a1c22726d15da6f823785e9f9afef751811f (diff)
Add support for enable clause in tests package manifest value
Diffstat (limited to 'mod')
-rw-r--r--mod/mod-build-task.cxx1
-rw-r--r--mod/mod-package-version-details.cxx19
2 files changed, 19 insertions, 1 deletions
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;