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

+4
View File
@@ -201,6 +201,8 @@ struct TargetRecord {
std::vector<std::string> action_outputs;
std::string working_directory;
std::map<std::string, std::string, std::less<>> environment;
std::vector<std::string> labels; // Test labels for filtering (`vbs test --label`).
std::vector<std::string> resources; // Exclusive resources held while the test runs.
bool nondeterministic{false};
bool enabled{true};
bool use_conventional_sources{false};
@@ -284,6 +286,8 @@ class Target {
Target &outputs(std::vector<std::string> paths);
Target &working_directory(std::string directory);
Target &env(std::string key, std::string value);
Target &label(std::string label);
Target &resource(std::string name);
Target &nondeterministic(bool enabled = true);
Target &enabled(bool flag);
Target &install(std::string destination = {}, std::string component = "default");
+2
View File
@@ -98,6 +98,8 @@ struct ResolvedTargetSummary {
std::string name;
TargetKind kind{TargetKind::Executable};
bool enabled{true};
std::vector<std::string> labels;
std::vector<std::string> resources;
std::vector<std::filesystem::path> expanded_sources;
std::vector<std::filesystem::path> primary_outputs;
std::vector<std::filesystem::path> runtime_shared_libraries;