feat(test): support CTest-style fixtures in the test runner
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 13s
VoidBuildSystem CI / fuzz-clang (push) Failing after 11s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 14s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 56s

This commit is contained in:
faumaray committed 2026-12-05 12:52:50 +03:00
1 parent 617d783e84
commit 6befa6b5e2
10 files changed
+268 -22

No files matched your search

+8 -2
View File
@@ -201,8 +201,11 @@ 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.
std::vector<std::string> labels; // Test labels for filtering (`vbs test --label`).
std::vector<std::string> resources; // Exclusive resources held while the test runs.
std::vector<std::string> fixture_setup; // Fixtures this test sets up.
std::vector<std::string> fixture_required; // Fixtures this test requires.
std::vector<std::string> fixture_cleanup; // Fixtures this test tears down.
bool nondeterministic{false};
bool enabled{true};
bool use_conventional_sources{false};
@@ -288,6 +291,9 @@ class Target {
Target &env(std::string key, std::string value);
Target &label(std::string label);
Target &resource(std::string name);
Target &fixture_setup(std::string name);
Target &fixture_required(std::string name);
Target &fixture_cleanup(std::string name);
Target &nondeterministic(bool enabled = true);
Target &enabled(bool flag);
Target &install(std::string destination = {}, std::string component = "default");
+3
View File
@@ -100,6 +100,9 @@ struct ResolvedTargetSummary {
bool enabled{true};
std::vector<std::string> labels;
std::vector<std::string> resources;
std::vector<std::string> fixture_setup;
std::vector<std::string> fixture_required;
std::vector<std::string> fixture_cleanup;
std::vector<std::filesystem::path> expanded_sources;
std::vector<std::filesystem::path> primary_outputs;
std::vector<std::filesystem::path> runtime_shared_libraries;