* feat(native): admit raw binaries with caller-supplied architecture and entry * fix(native): honor raw-binary preparation and entry identity * fix(ghidra): stream raw snapshot attestation with cancellation * fix(native): preserve and validate raw lifecycle entries --------- Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
29 lines
898 B
TypeScript
29 lines
898 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { parseConfig } from "../config/parseConfig.js";
|
|
import { IdaProvider } from "./IdaProvider.js";
|
|
|
|
describe("IDA provider target support", () => {
|
|
it("declines headerless raw-binary targets", () => {
|
|
const config = parseConfig({});
|
|
if (!config.ok) throw new Error("expected valid configuration");
|
|
const provider = new IdaProvider(config.value, {});
|
|
expect(
|
|
provider.inspectTargetSupport({
|
|
path: "/tmp/ecu.bin",
|
|
sha256: "a".repeat(64),
|
|
kind: "executable",
|
|
format: "raw-binary",
|
|
architecture: "arm",
|
|
availableArchitectures: ["arm"],
|
|
entryPoint: "0x8000000",
|
|
entryPointSource: "0x8000000",
|
|
}),
|
|
).toMatchObject({
|
|
status: "unsupported",
|
|
code: "target_format_unsupported",
|
|
reason: expect.stringContaining("Ghidra"),
|
|
});
|
|
});
|
|
});
|