feat(test): labels, exclusive resources and parallel test execution
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / fuzz-clang (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 10s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 51s

This commit is contained in:
faumaray committed 2026-12-05 12:44:50 +03:00
1 parent e135ae3023
commit 617d783e84
10 files changed
+281 -42

No files matched your search

+14
View File
@@ -854,6 +854,18 @@ Target &Target::nondeterministic(bool enabled) {
return *this;
}
Target &Target::label(std::string label) {
require_text(label, "test label");
owner(owner_)->targets.at(index_).labels.push_back(std::move(label));
return *this;
}
Target &Target::resource(std::string name) {
require_text(name, "test resource");
owner(owner_)->targets.at(index_).resources.push_back(std::move(name));
return *this;
}
Target &Target::enabled(bool flag) {
owner(owner_)->targets.at(index_).enabled = flag;
return *this;
@@ -1222,6 +1234,8 @@ std::string Project::to_json() const {
",\"action_outputs\":" + json_array(target.action_outputs, json_quote) +
",\"working_directory\":" + json_quote(target.working_directory) +
",\"environment\":" + env_json(target.environment) +
",\"labels\":" + json_array(target.labels, json_quote) +
",\"resources\":" + json_array(target.resources, json_quote) +
",\"nondeterministic\":" + std::string{target.nondeterministic ? "true" : "false"} +
",\"enabled\":" + std::string{target.enabled ? "true" : "false"} +
",\"use_conventional_sources\":" +