diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-06 19:22:56 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2021-09-24 11:37:05 +0300 |
commit | 28de3ed8416c20ab54527e5cc8a48c46de3bb9b5 (patch) | |
tree | 70d8b5843ab0d990f03cb6277ad340b797d4a17c /mod | |
parent | a9b630f95ba352430f1f25d25b538672fddce93c (diff) |
Add support for requires, tests, examples, benchmarks, and host task manifest values
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-build-task.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
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<package, 1> tes; + small_vector<bpkg::test_dependency, 1> 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)); |