test(linux): verify setup through CLI and MCP

This commit is contained in:
morluto
2026-07-13 21:20:51 +00:00
parent 75818d119e
commit 67504d2d51
20 changed files with 632 additions and 123 deletions
+19 -5
View File
@@ -37,11 +37,25 @@ describe("analysis error projection", () => {
);
});
it("projects a safe explanation for an unsupported Linux demo dialog", () => {
expect(projectAnalysisError(new HopperProcessError(78))).toMatchObject({
message:
"This Hopper demo build or dialog is not supported for unattended Linux analysis. Update REA or use a supported Hopper build.",
});
it("projects stable, safe Linux startup failure codes", () => {
const expected = [
[70, "private_display_unavailable"],
[71, "x11_authorization_failed"],
[72, "unsupported_hopper_build"],
[73, "invalid_launch_command"],
[74, "process_ownership_mismatch"],
[75, "hopper_exited_during_startup"],
[76, "unsupported_demo_dialog"],
[77, "unexpected_display_geometry"],
[78, "x11_input_failed"],
[79, "runtime_dependency_unavailable"],
] as const;
for (const [exitCode, code] of expected) {
const projected = projectAnalysisError(new HopperProcessError(exitCode));
expect(projected.code).toBe(code);
expect(projected.message.length).toBeGreaterThan(20);
expect(JSON.stringify(projected)).not.toContain("/proc/");
}
});
it("projects every typed failure without internal details", () => {