fix(verification): integrate Linux Hopper lane with current contracts
Integrate mainae8051302while retaining the Linux setup, orphan detection, launcher restoration and explicit string-recognition coverage corrections. Move verification guidance to its current owner and use the test-scoped temporary-directory helper. The checkout matches all 3,175 exported source-file digests of the tested candidate. Git stores the Windows captureGhidraLaunch.cmd fixture with LF; its exported checkout uses CRLF per .gitattributes. It is outside Linux Hopper execution. No native run is attributed to different runtime bytes. Real Hopper conformance: 9e7de373-4686-4820-ae48-801e536589b7. Uninterrupted Linux setup: 93584b53-944b-47cf-a6a4-b0d4ff8a4961. The exact97b76aa2run remains separate: ae4de7ff-dd2a-4c73-88dc-6dbf1ad7c537. 21 focused tests, check, docs:check, four fixtures, discovery, package verification and pack dry-run passed. Linux native decoded omissions, macOS/other builds and installed npm artifacts with Hopper remain unverified. Refs #339, #340
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
import { execFile } from "node:child_process";
|
||||
import { randomUUID } from "node:crypto";
|
||||
import {
|
||||
chmod,
|
||||
copyFile,
|
||||
mkdtemp,
|
||||
readFile,
|
||||
rm,
|
||||
symlink,
|
||||
unlink,
|
||||
} from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { chmod, copyFile, readFile, symlink, unlink } from "node:fs/promises";
|
||||
import { join } from "node:path";
|
||||
import { promisify } from "node:util";
|
||||
|
||||
@@ -18,6 +9,7 @@ import { expect, it } from "vitest";
|
||||
import { assertCleanLinuxHopperRuntime } from "../../scripts/lib/clean-linux-hopper-runtime.mjs";
|
||||
import { completeVerifierRun } from "../../scripts/lib/verifier-run.mjs";
|
||||
import { cleanupOwnedProcessGroup } from "../../src/process/ProcessOwnership.js";
|
||||
import { createTestTempDirectory } from "../fixtures/temporaryDirectory.js";
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
|
||||
@@ -29,7 +21,7 @@ it
|
||||
const runId = randomUUID();
|
||||
const childCode =
|
||||
"process.title = 'Xvfb'; setInterval(() => {}, 1000); process.send('ready');";
|
||||
const directory = await mkdtemp(join(tmpdir(), "rea-clean-runtime-test-"));
|
||||
const directory = await createTestTempDirectory("rea-clean-runtime-test-");
|
||||
const launcher = join(directory, "Hopper");
|
||||
const alternate = join(directory, "Hopper-alternate");
|
||||
const alternateMode = mode === "alternate launcher";
|
||||
@@ -116,7 +108,6 @@ it
|
||||
});
|
||||
expect(cleanup.cleaned, JSON.stringify(cleanup)).toBe(true);
|
||||
}
|
||||
await rm(directory, { recursive: true, force: true });
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user