On macOS, Ghidra stores project data in mmap pages that aren't flushed
to disk while the bridge runs. Per-test DaemonTestHarness stop/restart
cycles cause data loss. Use OnceLock<DaemonTestHarness> to share a
single bridge per test binary, matching the readonly_tests pattern.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All test files now use "ci-test" as the project name so they share a
single import+analyze cycle. A dedicated ghidra-setup job runs first to
install Ghidra and create the test project, seeding caches for the test
jobs that follow via `needs:`. This solves the chicken-and-egg problem
where Windows cold runs timeout before caches can be saved.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
script list CLI variant doesn't accept --project arg, so the command
fails when no default project is configured.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
BatchArgs was missing --project and --program fields, so batch commands
couldn't specify which project to use. Also fixed argument ordering in
all test files to place --project/--program after the subcommand name,
matching clap's per-subcommand argument parsing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tests that use DaemonTestHarness or ensure_test_project were missing the
require_ghidra!() macro, causing them to attempt bridge startup in CI
where Ghidra is not installed, resulting in 120s timeouts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Implemented `install_pyghidra` function to set up PyGhidra in a Python virtual environment for Ghidra installations.
- Enhanced `install_ghidra` to call `install_pyghidra` after Ghidra installation.
- Updated daemon command handling to include program name in start, restart, and stop commands.
- Refactored project path resolution to streamline project management.
- Improved socket path handling to respect `GHIDRA_CLI_SOCKET` environment variable for testing.
- Modified tests to remove ignore flags, allowing for automated testing without Ghidra installation.
- Added analysis step in test project setup to ensure comments and other features work correctly.