Running it

python3 scripts/amberlith.py run --runtime build/scarletnx --nro amberlith-1.2.0.nro --out /tmp/amberlith \
    --mode "quick notime cpu fs video display kernel audio hooks" \
    [--baseline "$REFS/amberlith/linux-x86_64.txt"]

The baselines are the amberlith/ folder of test-references, the package of the tests' reference values that cpmfile.json pins (docs/dev/build.md); a build with its tests has it where its CMakeCache.txt says:

REFS=$(sed -n 's/^CPM_PACKAGE_test-references_SOURCE_DIR:INTERNAL=//p' build/CMakeCache.txt)

--out, empty or an earlier run's, is emptied, then gets the recompiled game and its XDG folders (work/, so nothing of yours is read or written), report.jsonl, the failures' pictures (images/), the recompile's and each launch's log, summary.md and baseline.txt: this run's passing cases, those the probe's ban list skipped as banned, and those the baseline expects to end another way that did. A launch that ends before the summary, crashed or killed after --timeout seconds (600) without a new line in the report, is followed by another, which goes on after the case it ended inside, reported as crashed. The baseline is lavapipe's: a GPU passes other cases, so on one the run says what differs rather than what regressed.

The words go to the mode file of the probe's card folder, sdmc:/amberlith/; a build from before 1.0.0, whose NRO does not carry sdmc:/amberlith, reads sdmc:/edenprobe/ alone and gets them there. A probe that knows the word (its NRO carries machine=) gets machine=scarletnx@<the runtime's commit> beside the words, the commit from the build line the runtime carries, unless they name a machine: the probe's ban list then skips as banned the cases that end ScarletNX every time, and the word unban runs them.

--setting KEY=VALUE gives each launch that runtime setting as --KEY=VALUE, for example vk_memory=2 to read guest buffers in place, the default on an integrated GPU, where a driver can still refuse the imports and copy. Lavapipe, which CI runs on, copies by default: its GPU is the CPU, which can't read pages the runtime traps. To run lavapipe without installing it, point VK_DRIVER_FILES at its ICD file. CI's runs of the NRO and the ctest entries below take fps-limit=0, no FPS limit: the vsync comes every millisecond rather than at 60 Hz, so no case waits on a display.

With -DSNX_TEST_AMBERLITH=/path/to/amberlith.nro (SNX_TEST_EDENPROBE before 1.0.0, still read as it, and said), ctest runs it as amberlith_vk_memory_1 (copied) and amberlith_vk_memory_2 (in place) against the baseline, and as amberlith_compute_readback, the wimsy suite's heavy level after the reference suite, against amberlith/compute-readback.txt: #2442's case, a compute texture's level read back after each judged frame holds that frame's texels.


Made from docs/dev/amberlith.md at 69237645142c. GPL-3.0-or-later.