chore(artifacts): preserve contributor iNES merge history
This commit is contained in:
+21
-12
@@ -19,7 +19,7 @@ const TARGET: BinaryTarget = {
|
||||
const PROVIDER = { id: "fixture", name: "Fixture provider", version: "1" };
|
||||
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 = {
|
||||
path: TARGET.path,
|
||||
sha256: TARGET.sha256,
|
||||
@@ -33,17 +33,26 @@ it("rejects a detected Evidence subject with the raw-only 6502 architecture", ()
|
||||
result: null,
|
||||
}).subject,
|
||||
).toMatchObject({ format: "raw-binary", architecture: "6502" });
|
||||
const malformed = {
|
||||
...selected,
|
||||
format: "pe" as const,
|
||||
};
|
||||
expect(() =>
|
||||
createEvidence(malformed, PROVIDER, {
|
||||
operation: "inspect",
|
||||
parameters: {},
|
||||
result: null,
|
||||
}),
|
||||
).toThrow();
|
||||
expect(
|
||||
createEvidence(
|
||||
{
|
||||
path: selected.path,
|
||||
sha256: selected.sha256,
|
||||
format: "ines",
|
||||
},
|
||||
PROVIDER,
|
||||
{ operation: "inspect", parameters: {}, result: null },
|
||||
).subject,
|
||||
).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", () => {
|
||||
|
||||
@@ -486,7 +486,9 @@ describe("Ghidra Windows launcher", () => {
|
||||
}),
|
||||
).toThrow(/metacharacters/u);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Ghidra Windows runtime isolation", () => {
|
||||
it.skipIf(process.platform !== "win32").each([
|
||||
{
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user