/* Crafter® Build Copyright (C) 2026 Catcrafts® Catcrafts.net LGPL-3.0-only. */ import std; import Crafter.Build; #include "../_shared/TestUtil.h" namespace fs = std::filesystem; using namespace TestUtil; using namespace Crafter; int main() { try { fs::path src = fs::current_path() / "tests" / "RunnerClassification" / "inner"; Configuration cfg = LoadFixture("RunnerClassification", src); RunTestsOptions opts; opts.timeoutOverride = std::chrono::seconds(2); // Hang test bounded TestSummary summary = RunTests(cfg, opts); if (summary.passed != 1 || summary.failed != 1 || summary.crashed != 1 || summary.timedOut != 1 || summary.skipped != 0) { std::println(std::cerr, "outcome counts mismatch: passed={} failed={} crashed={} timedOut={} skipped={}", summary.passed, summary.failed, summary.crashed, summary.timedOut, summary.skipped); return 1; } return 0; } catch (const std::exception& e) { std::println(std::cerr, "test exception: {}", e.what()); return 1; } }