Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

test(ghidra): restore complete installation fixtures across CI boundaries

morluto18d56f5321c3
diff --git a/src/ghidra/GhidraDoctor.test.ts b/src/ghidra/GhidraDoctor.test.ts
index 5335e4f60..e5d20f4c8 100644
--- a/src/ghidra/GhidraDoctor.test.ts
+++ b/src/ghidra/GhidraDoctor.test.ts
@@ -111,7 +111,9 @@ describe("Ghidra doctor integration", () => {
"wrong version",
inspection(
{ installDir: INSTALL },
- { readText: () => "application.version=11.4\napplication.java.min=21\n" },
+ {
+ readText: () => "application.version=11.4\napplication.java.min=21\n",
+ },
),
"ghidra-version",
],
diff --git a/src/ghidra/GhidraSnapshotCache.test.ts b/src/ghidra/GhidraSnapshotCache.test.ts
index 5185054e9..9cf5c24ad 100644
--- a/src/ghidra/GhidraSnapshotCache.test.ts
+++ b/src/ghidra/GhidraSnapshotCache.test.ts
@@ -39,7 +39,8 @@ const fixture = (version = "12.1.4") => {
{
platform: "linux",
architecture: "x64",
- readText: () => `application.version=${version}\napplication.java.min=21\n`,
+ readText: () =>
+ `application.version=${version}\napplication.java.min=21\n`,
executable: () => true,
probeJava: () => ({
version: "21.0.11",
diff --git a/tests/boundary/filesystem/ghidraPspExtension.test.ts b/tests/boundary/filesystem/ghidraPspExtension.test.ts
index 88e25939a..0e07ad629 100644
--- a/tests/boundary/filesystem/ghidraPspExtension.test.ts
+++ b/tests/boundary/filesystem/ghidraPspExtension.test.ts
@@ -52,7 +52,7 @@ const target = {
const host: GhidraInstallationHost = {
platform: "linux",
architecture: "x64",
- readText: () => "application.version=12.1.3\n",
+ readText: () => "application.version=12.1.3\napplication.java.min=21\n",
executable: () => true,
probeJava: () => ({
version: "21.0.12",
diff --git a/tests/boundary/mcp/ghidraMcpHarness.ts b/tests/boundary/mcp/ghidraMcpHarness.ts
index 7e2c3ae73..ad3565992 100644
--- a/tests/boundary/mcp/ghidraMcpHarness.ts
+++ b/tests/boundary/mcp/ghidraMcpHarness.ts
@@ -95,7 +95,7 @@ export const sessionEvidence = (session: BinarySession, value: unknown) => {
const installationHost = (): GhidraInstallationHost => ({
platform: "linux",
architecture: "x64",
- readText: () => "application.version=12.1.4\n",
+ readText: () => "application.version=12.1.4\napplication.java.min=21\n",
executable: () => true,
probeJava: () => ({
version: "21.0.11",
diff --git a/tests/boundary/mcp/ghidraReopen.test.ts b/tests/boundary/mcp/ghidraReopen.test.ts
index bdac57233..6a90f0118 100644
--- a/tests/boundary/mcp/ghidraReopen.test.ts
+++ b/tests/boundary/mcp/ghidraReopen.test.ts
@@ -99,7 +99,7 @@ class FixtureLauncher implements GhidraLauncher {
const installationHost: GhidraInstallationHost = {
platform: "linux",
architecture: "x64",
- readText: () => "application.version=12.1.4\n",
+ readText: () => "application.version=12.1.4\napplication.java.min=21\n",
executable: () => true,
probeJava: () => ({
version: "21.0.11",
diff --git a/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts b/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts
index dc4be5ef2..56fec2151 100644
--- a/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts
+++ b/tests/boundary/providers/ghidra/ghidraJavaLaunch.test.ts
@@ -286,7 +286,8 @@ describe.skipIf(process.platform === "win32")(
{
platform: process.platform,
architecture: process.arch,
- readText: () => "application.version=12.1.4\n",
+ readText: () =>
+ "application.version=12.1.4\napplication.java.min=21\n",
executable: () => true,
probeJava: () => ({
version: "21.0.12",