test(linux): verify setup through CLI and MCP
This commit is contained in:
+19
-5
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user