From 28de3ed8416c20ab54527e5cc8a48c46de3bb9b5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 6 Sep 2021 19:22:56 +0300 Subject: Add support for requires, tests, examples, benchmarks, and host task manifest values --- mod/mod-build-task.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'mod') diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx index de75c07..5a7a428 100644 --- a/mod/mod-build-task.cxx +++ b/mod/mod-build-task.cxx @@ -234,7 +234,7 @@ handle (request& rq, response& rs) // Exclude external test packages which exclude the task build // configuration. // - small_vector tes; + small_vector tests; for (const build_test_dependency& td: p->tests) { @@ -259,19 +259,26 @@ handle (request& rq, response& rs) *cm.config, nullptr /* reason */, true /* default_all_ucs */)) - tes.push_back (package {move (p->id.name), move (p->version)}); + continue; } + + tests.emplace_back (move (td.name), + td.type, + td.buildtime, + move (td.constraint)); } task_manifest task (move (b->package_name), move (b->package_version), move (r->location), move (fps), - move (tes), + move (p->requirements), + move (tests), cm.machine->name, cm.config->target, cm.config->environment, cm.config->args, + belongs (*cm.config, "host"), cm.config->warning_regexes, move (t->interactive)); -- cgit v1.1