From fab33a66c6348942bb112f890daaee7614d2bb7b Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Wed, 14 Oct 2026 09:09:02 +0800 Subject: [PATCH] test(package): select the intended Hopper smoke-test provider Keep provider discovery independent from Hopper-specific packaged workflows. Installed Ghidra launchers on PATH must not turn the fixture into an ambiguous auto-selection request; target-free inventory and unknown-provider checks remain explicit. --- scripts/verify-package-capabilities.mjs | 9 ++++++++- scripts/verify-package-platform.mjs | 26 +++++++++++++++++++------ 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/scripts/verify-package-capabilities.mjs b/scripts/verify-package-capabilities.mjs index acf848974..5a9f79ba9 100644 --- a/scripts/verify-package-capabilities.mjs +++ b/scripts/verify-package-capabilities.mjs @@ -31,7 +31,14 @@ export async function verifyPackageCapabilitiesAndSearch({ cli, environment }) { const searchResult = json( await run( cli, - ["search", process.execPath, "fixture", "--json"], + [ + "search", + process.execPath, + "fixture", + "--provider", + "hopper", + "--json", + ], environment, ), ); diff --git a/scripts/verify-package-platform.mjs b/scripts/verify-package-platform.mjs index 253937688..0dd67aa86 100644 --- a/scripts/verify-package-platform.mjs +++ b/scripts/verify-package-platform.mjs @@ -10,7 +10,7 @@ export async function verifyPackagePlatform({ if (platform === "linux") { const unsupportedExecution = await runWithStatus( cli, - ["analyze", process.execPath, "--json"], + ["analyze", process.execPath, "--provider", "hopper", "--json"], environment, ); assertLinuxPackageProviderFailure(unsupportedExecution); @@ -18,7 +18,7 @@ export async function verifyPackagePlatform({ const overview = json( await runCommand( cli, - ["analyze", process.execPath, "--json"], + ["analyze", process.execPath, "--provider", "hopper", "--json"], environment, ), ); @@ -29,7 +29,7 @@ export async function verifyPackagePlatform({ const inspected = json( await runCommand( cli, - ["inspect", process.execPath, "--json"], + ["inspect", process.execPath, "--provider", "hopper", "--json"], environment, ), ); @@ -38,7 +38,14 @@ export async function verifyPackagePlatform({ const functionResult = json( await runCommand( cli, - ["function", process.execPath, "0x1000", "--json"], + [ + "function", + process.execPath, + "0x1000", + "--provider", + "hopper", + "--json", + ], environment, ), ); @@ -53,7 +60,7 @@ export async function verifyPackagePlatform({ const xrefs = json( await runCommand( cli, - ["xrefs", process.execPath, "0x1000", "--json"], + ["xrefs", process.execPath, "0x1000", "--provider", "hopper", "--json"], environment, ), ); @@ -65,7 +72,14 @@ export async function verifyPackagePlatform({ const trace = json( await runCommand( cli, - ["trace", process.execPath, "fixture", "--json"], + [ + "trace", + process.execPath, + "fixture", + "--provider", + "hopper", + "--json", + ], environment, ), );