Repository navigation
Hardware Test Menu
demos/tester.lua is a single-file, on-device test menu for every OpenLua
module. It runs from EBOOT.PBP on a real PSP and also in PPSSPP; anything the
environment cannot provide is recorded as INFO or SKIP instead of failing.
The authoritative document is
docs/TESTER.md.
| Model | Common name | Notes |
|---|---|---|
| PSP-1000 | Fat | 32 MB RAM, no ef0:
|
| PSP-2000 / PSP-3000 | Slim | 64 MB RAM, no ef0:
|
| PSP-E1000 | Street | no WLAN, no ef0:
|
| PSP-N1000 | Go | internal storage is ef0:; M2 is ms0:
|
hw.getmodel() can only reliably identify the Go, so SELECT cycles a
declared profile (Fat / Slim / 3000 / Street / Go). The choice is saved to
tester.cfg and written into the report. Set it to match the physical unit
before collecting results.
Build the engine, then stage the menu:
bash docker/build.sh
bash tools/package_tester.shOutput defaults to out/tester-package/:
PSP/GAME/OpenLua/EBOOT.PBP
PSP/GAME/OpenLua/script.lua
PSP/GAME/OpenLua/assets/
PSP/GAME/OpenLuaProbe/EBOOT.PBP (when the probe was built)
README.txt
Copy PSP/ to ms0: (Memory Stick) or ef0: (PSP Go internal storage) and
launch OpenLua. You can also copy the three items by hand.
The menu needs no bundled system font. It tries, in order:
-
flash0:/font/ltn0.pgfthrough the PGF loader (opt-in builds only; the standard EBOOT returnsnilhere), -
assets/font.pngas a fixed-cell font, - a built-in 5x7 bitmap font.
| Input | Action |
|---|---|
| UP / DOWN | Move the selection or scroll a result page. |
| X or O | Open the selected test page. |
| O | Go back. |
| X | Run / re-run the page, or trigger its documented action. |
| SELECT | Cycle the declared model (saved to tester.cfg). |
| START | Run all non-interactive checks and write test_report.txt. |
Every test call is wrapped in pcall, so a broken module shows FAIL instead
of taking the menu down.
| Page | Covers |
|---|---|
| SYSTEM / OS / HARDWARE / POWER |
os, hw, batt, power
|
| STORAGE / FILES |
files, io, files.cdir, ms0/ef0, app0
|
| SAVEDATA |
data slots, metadata, limits, delete |
| INI / JSON |
ini, json round trips and rejection paths |
| INPUT / TIMERS / MATH |
buttons, timer, math helpers |
| GRAPHICS / DRAW / IMAGE |
image, draw, screen, color
|
| FONTS / SFONT |
font PGF/fixed-cell, sfont
|
| GAME / MAP |
game.info/artwork, map
|
| SOUND / AUDIO |
sound WAV load, volume, loop, play/pause/stop |
| 3D / AMG / CAM3D / MODELS |
amg, cam3d, texture3d, model3d
|
| SPLASH |
splash.show / old / oldschool
|
| ON-SCREEN KEYBOARD | osk.init |
| PMF / PSMF VIDEO |
pmf.run and error paths |
| GO! CAM USB CAMERA |
cam lifecycle, render, snapshot |
| UMD / USB / SERIAL / IR / BT |
umd, usb, sio, ir, bluetooth, adhoc
|
| WLAN / SOCKET / HTTP / FTP |
wlan, socket, http, ftp, adhoc
|
| BATCH REPORT | Last START results and the report path |
Hardware and state-changing actions only run when you press the key shown in the page footer. Nothing starts at boot.
| Page | Key | Action |
|---|---|---|
| SOUND | X / TRIANGLE / SQUARE | Play/stop / cycle volume / toggle loop |
| SPLASH | X / TRIANGLE / SQUARE |
splash.show / splash.old / splash.oldschool
|
| OSK | X | Open the system keyboard |
| PMF | X | Play movie.pmf if present |
| CAMERA | X | Live camera preview (SQUARE takes a snapshot) |
| UMD / USB | X / TRIANGLE / SQUARE / L / R | UMD mount / USB mass storage / stop / USB UMD (SKIP) / USB flash0 (SKIP) |
| NETWORK | X / TRIANGLE / SQUARE / L / R | WLAN connect / disconnect / FTP toggle / adhoc init / adhoc term |
Never called automatically (and listed in every report):
-
os.exit,os.restart -
power.suspend,power.off,power.lock/unlock - flash writes
- the FTP server (only the explicit SQUARE toggle starts it)
USB mass storage exposes the Memory Stick or internal storage until
usb.stop(); press SQUARE on the UMD/USB page to stop it. USB storage and
GO! CAM cannot be active at the same time.
usb.umd() and usb.flash*() are no-ops in the standard build. They need
Sony's optional _usbdevice.prx; importing it statically makes the EBOOT fail
with 8002013C, so the build omits it. L/R on that page record SKIP.
START runs every non-interactive page and writes test_report.txt:
- in the app directory (next to
EBOOT.PBP), - in
writable_base()/test_report.txtwhen that is a real directory, - in
ms0:/PSP/OPENLUA_TEST/andef0:/PSP/OPENLUA_TEST/when available.
The report starts with the version, date, declared model, detected model,
firmware, nickname/CFW and free space. Each section ends with a
pass/fail/info/skip count, and the file ends with totals plus the list of
things intentionally not run.
Status meanings:
| Status | Meaning |
|---|---|
PASS |
The call completed and the expected result was observed. |
FAIL |
The call raised or returned an unexpected value. This is a bug. |
INFO |
A value was read but cannot be judged here, or the hardware/asset is absent. Not a failure. |
SKIP |
Needs a key press or real hardware, or was intentionally not run. Not a failure. |
The menu keeps the latest batch result on the BATCH REPORT page until the app exits.
The
version 1.0line at the top of the report is the report format version, not the OpenLua release version. The release version is the tag, theVERSIONfile in the ZIP and the app header.
Full START batch on PPSSPP v1.20.4 (SDL offscreen + Mesa llvmpipe OpenGL), with the standard PGF-disabled PSP build:
TOTAL 225 checks: 185 pass, 0 fail, 21 info, 19 skip
INFO items are values PPSSPP cannot emulate (for example ef0: absent, UMD
metadata, kernel-only hardware IDs, battery capacity/voltage). SKIP items are
interactive-only tests, the deliberately unrun destructive calls, and
FONT.LOAD PGF (the standard build does not link sceLibFont).
Zero FAIL confirms that every module's non-interactive surface works in the
emulator; it does not prove real-hardware behaviour.
| Date | Model | Firmware / CFW | Result |
|---|---|---|---|
| 2026-11-10 | PSP-1001 (Fat) | 6.61 PRO-C (Infinity) | OpenLua v0.1.3 boots and runs. Some module pages ignore Circle/back (see below). Full batch report pending. |
When reporting hardware results, include the model, firmware/CFW, whether
ms0: or ef0: was used, and the full test_report.txt.
Reported on: PSP-1001, 6.61 PRO-C (Infinity), OpenLua v0.1.3.
Symptom: On some module test pages, pressing Circle/O to go back to the main menu does nothing; the page stays on screen.
Status: Under investigation. The menu code reads buttons.read() and
handles O on each page, so the likely causes are a per-page loop that does not
re-check the exit condition, a page that consumes input while drawing, or a
mask/constant mismatch. Until a fix is released:
- Use START to run the batch directly from the main menu (you do not need to enter each page).
- After a page that traps O, use the PSP HOME button to leave the app; the test batch is unaffected.
- If you can, note which pages trap O and send that list with your report.
This page will be updated when the fix ships.
-
ef0:internal storage and cross-volume copy/move on the PSP Go. - Real UMD discs (
gameid, title, size). USB flash/UMD modes need a custom build with_usbdevice.prx. - Battery voltage/capacity and temperature on all models.
- The GO! CAM accessory and real camera frames.
- WLAN profiles, access points, adhoc peers and a real connection.
- Infrared and serial hardware (the user-mode build is a stub).
- PGF rendering from the real
flash0:font (opt-in build only). - PMF playback and the OSK cancel/confirm variants.
-
power.lock/unlockon firmware where PPSSPP lacks HLE.