chore(artifacts): preserve contributor iNES merge history

This commit is contained in:
morluto
2026-10-13 22:06:37 +08:00
2 changed files with 23 additions and 12 deletions
+21 -12
View File
@@ -19,7 +19,7 @@ const TARGET: BinaryTarget = {
const PROVIDER = { id: "fixture", name: "Fixture provider", version: "1" }; const PROVIDER = { id: "fixture", name: "Fixture provider", version: "1" };
const PROFILE = createAnalysisProfile(PROVIDER, { loader: "default" }); const PROFILE = createAnalysisProfile(PROVIDER, { loader: "default" });
it("rejects a detected Evidence subject with the raw-only 6502 architecture", () => { it("keeps 6502 confined to explicit raw Evidence subjects alongside iNES", () => {
const selected = { const selected = {
path: TARGET.path, path: TARGET.path,
sha256: TARGET.sha256, sha256: TARGET.sha256,
@@ -33,17 +33,26 @@ it("rejects a detected Evidence subject with the raw-only 6502 architecture", ()
result: null, result: null,
}).subject, }).subject,
).toMatchObject({ format: "raw-binary", architecture: "6502" }); ).toMatchObject({ format: "raw-binary", architecture: "6502" });
const malformed = { expect(
...selected, createEvidence(
format: "pe" as const, {
}; path: selected.path,
expect(() => sha256: selected.sha256,
createEvidence(malformed, PROVIDER, { format: "ines",
operation: "inspect", },
parameters: {}, PROVIDER,
result: null, { operation: "inspect", parameters: {}, result: null },
}), ).subject,
).toThrow(); ).toMatchObject({ format: "ines", architecture: null });
for (const format of ["pe", "ines"] as const) {
expect(() =>
createEvidence({ ...selected, format }, PROVIDER, {
operation: "inspect",
parameters: {},
result: null,
}),
).toThrow();
}
}); });
it("preserves omitted relationship diagnostics and authenticates reported diagnostics", () => { it("preserves omitted relationship diagnostics and authenticates reported diagnostics", () => {
@@ -486,7 +486,9 @@ describe("Ghidra Windows launcher", () => {
}), }),
).toThrow(/metacharacters/u); ).toThrow(/metacharacters/u);
}); });
});
describe("Ghidra Windows runtime isolation", () => {
it.skipIf(process.platform !== "win32").each([ it.skipIf(process.platform !== "win32").each([
{ {
properties: properties: