Document the PCSX2 test setup
PCSX2 was set up and working but existed only in this machine's filesystem and in people's heads, so every comparison looked like a one-off observation rather than something re-runnable. The setup section in docs/plan/pcsx2-verification.md now records where the emulator, the BIOS, the disc, the savestates and the PINE socket are, how a state is captured, and which command the disc integration tests need -- and AGENTS.md and README.md point at it from their orientation sections. One operational detail worth spelling out: the emulator's directory is lowercase (pcsx2), which is not what people type.
This commit is contained in:
@@ -121,6 +121,33 @@ invisible.
|
||||
`tools/trace/tests/` and test against that; no test may read a savestate, a
|
||||
dump or a live emulator.
|
||||
|
||||
## The test setup
|
||||
|
||||
PCSX2 is installed and working on this machine, so every comparison above can
|
||||
be re-run rather than being a one-off observation.
|
||||
|
||||
| What | Where |
|
||||
|---|---|
|
||||
| Emulator | `~/Desktop/pcsx2/pcsx2-v2.8.2-linux-appimage-x64-Qt.AppImage` — the directory name is **lowercase** on disk |
|
||||
| Game disc | `~/Desktop/pcsx2/games/Ratchet & Clank - Going Commando.iso`; verified target `SCUS_972.68` v1.01 NTSC ([`docs/disc-identification.md`](../disc-identification.md)) |
|
||||
| Emulator config | `~/.config/PCSX2/` (`sstates`, `bios`, `memcards`, `inis`, `logs`) |
|
||||
| BIOS | extracted into `~/.config/PCSX2/bios/` |
|
||||
| Savestates | `~/.config/PCSX2/sstates/SCUS-97268 (38996035).NN.p2s`, `NN` = slot |
|
||||
| Unpacked disc | `~/Documents/gc-extracted/`, all 27 levels |
|
||||
| PINE socket | `$XDG_RUNTIME_DIR/pcsx2.sock` (`/run/user/1000/pcsx2.sock`), slot 28011 |
|
||||
|
||||
The emulator boots the disc with `-fastboot`; a level takes about a minute
|
||||
from a cold start to reach. To capture a state manually, press F1 in-game (it
|
||||
lands in the slot's `.p2s`); to capture from a script, `gc-trace
|
||||
pine-savestate SLOT` asks the emulator to write one.
|
||||
|
||||
The disc integration tests need the image, not the emulator:
|
||||
|
||||
```sh
|
||||
GC_DISC="$HOME/Desktop/pcsx2/games/Ratchet & Clank - Going Commando.iso" \
|
||||
cargo test --workspace
|
||||
```
|
||||
|
||||
## Running it
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user