JSIDPlay2 is a highly compatible and cycle-exact Commodore 64 (C64) emulator. It is written in Java and features:
Use the following command to build the project. Replace javafx.platform with your platform (linux, linux-aarch64,
win, mac, or mac-aarch64).
mvn -Djavafx.platform=linux clean install
target/standalonetarget/deployThe separate pom.central.xml builds the Java 21 emulator library from the existing sources in this repository:
mvn -f pom.central.xml clean verify
It produces libsidplay-1.0.0.jar, libsidplay-1.0.0-sources.jar and libsidplay-1.0.0-javadoc.jar under
target/central. The primary JAR bundles its runtime dependencies and has sidplay.Player as its main class,
so the single JAR downloaded from Central also plays tunes directly with JavaSound:
java -jar target/central/libsidplay-1.0.0.jar /path/to/tune.sid
java -jar target/central/libsidplay-1.0.0.jar /path/to/tune.sid 2 180
The optional arguments select a subsong and a fallback duration in seconds. Known song lengths take precedence;
the default fallback of zero plays until Ctrl+C. Use --help for usage. Playback uses software SID emulation,
the tune's start song by default, and JavaSound's default output device.
Compilation, sources and Javadoc use the same project source selection, copied automatically into the build
directory. All dependencies come from Maven Central; neither lib/ nor the application build is needed.
The published POM omits the dependencies already bundled in the JAR. Maven consumers therefore also receive
those embedded classes, including Jackson and TrueVFS. SLF4J logging is routed to java.util.logging, as in
the full application. Use install instead of verify to make the library available to local Maven projects.
The library contains the C64 and peripheral emulation, SID tune loaders, software SID implementations, mixer,
inspection helpers, INI configuration, Player and JavaSound. Applications can use Player directly or supply
an AudioDriver to Player or ReSIDBuilder for PCM output. The
core integration test checks the packaged JAR in isolation, including
the executable entry point, archive services, a real 6510 program and SID playback through all three software
SID emulations with both chip models.
For an output created for each playback, implement AudioDriver and register an
AudioDriverFactory on the player:
Player player = new Player(config);
player.setAudioDriverFactory((audioConfig, tune) -> new MyAudioDriver());
player.play(SidTune.load(file));
The factory runs on the player's thread at each playback opening, including tune/subsong restarts.
Player opens and closes the returned driver. Configure the factory before playback or after stopC64()
returns, and return a fresh driver for each opening. Custom outputs need no additional Audio enum value.
Audio itself implements the factory interface for built-in choices and creates independent driver instances.
setAudioDriver(instance) instead reopens the supplied instance for subsequent playbacks;
setAudioDriverFactory(null) restores the configured built-in audio choice.
ConvertServlet creates a new player and stream driver for every request, using setAudioDriver(instance)
to keep each response stream and its throttling state confined to that request.
The JavaFX UI, full console application, network/USB SID drivers, MP3 support and media-export backends belong
to the complete application. SIDBuilderFactory creates software SIDs directly and loads the application's
optional hardware factory only for those engines or their credits. The core retains configuration enum values
for compatibility, resolving audio backends only when selected. Selecting an omitted SID/audio backend or
requesting runtime assembly reports an unsupported operation; requesting an MP3 tune reports a SidTuneError.
Keep SidTune.USE_KICKASSEMBLER and PRG2TAP.USE_KICKASSEMBLER at their default false values to use the included
precompiled drivers. The complete application retains these optional implementations.
After publication, consumers can use:
<dependency>
<groupId>io.github.kenchis</groupId>
<artifactId>libsidplay</artifactId>
<version>1.0.0</version>
</dependency>
See Publishing libsidplay to Maven Central for first-time namespace, token and GPG setup,
the signed local rehearsal, Portal publication, and subsequent versions. Published versions cannot be overwritten;
an update needs a new library version. Normal verify and install builds need neither an account nor a signing key.
The main POM builds the application and NetSID distributions; it no longer builds a separate -libsidplay.jar.
mvn exec:java -Dexec.mainClass=ui.JSidPlay2Main
mvn exec:java -Dexec.mainClass=server.restful.JSIDPlay2Server
Then open start page http://127.0.0.1:8080 in your browser.
... or open demo
page http://127.0.0.1:8080/static/teavm/c64jukebox.vue in your
browser.
Allow the Docker container to open a window (once):
xhost +local:docker
docker compose -f src/main/docker/docker-compose.XXX.linux.yml updocker compose -f src/main/docker/docker-compose.XXX.linux.yml downExamples:
Start Server: docker compose -f src/main/docker/docker-compose.server.linux.yml up
Start JavaFX UI: docker compose -f src/main/docker/docker-compose.ui.linux.yml up
Start Network SID Device: docker compose -f src/main/docker/docker-compose.netsiddev.linux.yml up
The backend loads assembly64-credentials.properties from user.dir first, then user.home, matching
directoryServlet.properties. Both files are merged; home-directory values override duplicate keys.
An explicit -Djsidplay2.assembly64.credentials=/private/path/assembly64-credentials.properties uses only that file.
The server Compose file mounts /home/ken/assembly64-credentials.properties from the Docker host read-only at
/root/assembly64-credentials.properties, matching the backend's default location in the container user's home
directory.
Keep the host file private with mode 600. Recreate the server container after adding the mount. The credentials stay
outside the image; .dockerignore also excludes this filename from builds. Account values remain backend-only and are
usable only by web administrators.
For using the desktop and browser players, see the User Guide.
For detailed server setup (NGINX, MySQL, WhatsSID), see docs/SERVER_SETUP.md.
For the developer release process, see docs/RELEASE_HOWTO.md.
The repository's release skill follows that guide; invoke
$jsidplay2-release with the target version and release date to prepare or verify a release.
For upgrading embedded JavaScript/WebAssembly players from 4.14 to the next release,
see the web developer upgrade guide.
For JCommander usage, see the developer tips.
For the latest changes, see CHANGELOG.md.
For plans, see TODO.md.
The JavaFX and browser emulation settings offer VIC Model beside C64 Model. DEFAULT follows the machine
preset: C64 uses MOS6569R3 for PAL and MOS6567R8 for NTSC; C64C uses MOS8565 for PAL and MOS8562 for NTSC. With
DEFAULT, the forced video standard, tune metadata and default video standard retain their existing precedence.
Explicit choices are MOS6569R3, MOS8565 and MOS6567R8. The selected chip determines PAL/NTSC, overriding forced
clock settings and tune metadata. Manual clock controls are disabled while an explicit chip is selected, and their saved
values are retained for a return to DEFAULT. The C64 preset continues to select the CIA and glue logic.
Java/console configuration supports VicModel=DEFAULT in the INI [Emulation] section and, for example,
--c64Model C64C --vicModel MOS6569R3. JavaFX changes require restarting the application; browser changes apply on the
next playback/open. Status reports the active VIC and clock while a saved change is pending. Older saved configurations
use DEFAULT.
Chip selection applies the currently implemented timing behavior and preserves the existing palette. The C64C NTSC
default retains its existing MOS8562 identity and behavior; separate MOS8562 revision emulation is not added here.
The desktop monitor and browser offer JSIDPlay2 and VICE-style PAL rendering. The VICE preset matches VICE 3.10
x64sc's default PAL colours: its default MOS8565 palette, gamma 1.00, 125% contrast/saturation and default odd-line
settings. It uses horizontal filtering and the PAL chroma delay line at the native 384×272 PAL resolution, without
artificial scanlines. This fixed colour preset is independent of the selected emulated VIC. NTSC keeps the standard
renderer. The choice applies at the next playback start. Desktop palette sliders are disabled while the fixed VICE
preset is active; their saved values are retained for JSIDPlay2 rendering. Display scaling and recording dimensions
remain unchanged. Independent native VICE reference pixels cover all
16 colours, fine patterns and both raster parities.
The desktop Player → WARP switch (Alt+W) runs software emulation as fast as the host allows. Sound output is
discarded and the monitor presents up to ten frames per real second; CPU, VIC, CIA, SID, cartridge, tape and drive
execution retain their normal emulated timing. Existing fast-forward remains available for accelerated listening.
Switching WARP off restores that speed and resumes live audio with fresh playback timing.
JavaFX toolbar → WARP on startup/loading and its adjacent Time limit (seconds) field configure automatic WARP
for subsequent starts. The same settings remain available in the Player menu. In the browser, use Configuration →
Playback → WARP on startup/loading and WARP time limit (seconds). Startup WARP is enabled by default.
The time limit ranges from 1–3600 real seconds and defaults to 30. Known program handoffs and successful BASIC loading
completion end automatic WARP early. Unrecognized loaders may use the full timeout; loading continues normally after it
expires. The timeout also runs while paused. Manual WARP requests cancel startup automation; manually enabled WARP
remains active until switched off or playback stops/restarts.
In C64Jukebox, toggle manual WARP from the playback bar or the Player menu.
Startup LOAD and its following command (usually RUN) are delivered separately, with automatic WARP released before
the following command is entered. This also protects the opening of BASIC programs. Completion checks include the editor
cursor and keyboard state; errors, RUN/STOP and unexpected editable prompts discard the following command. The timeout
ends acceleration without discarding a pending RUN. With a nonstandard editor whose readiness cannot be established,
automatic WARP is released before delivering the original command. Cartridge boots begin playback at reset and do not
enter automatic WARP; memory and sound expansions and cartridges accompanying a LOAD retain the normal loading path.
Automatic startup WARP also observes execution leaving the KERNAL for program RAM,
following VICE’s autostart safeguard. It turns
off before the first program instruction, independently of the emulation buffer size, and discards the following command
when a loader starts itself. BASIC’s CHRGET helper and mapped cartridge ROM are excluded. A loader that executes its own
RAM code can return to normal speed before all its loading has finished; this conservative cutoff protects the opening
and leaves emulated execution intact.
WARP supports desktop software emulation with the live soundcard driver and browser software playback (all JS/WASM
backends). Recording, streaming, MP3 comparison, hardware/network SIDs and Ultimate64 operation do not enable it.
Browser settings are saved locally; a WARP indicator appears while automatic WARP is active, and switching the startup
option off also ends active automatic WARP. JVM startup and audio-device initialization are unaffected; the initial
emulated reset already runs without audio pacing.
Console users can toggle manual WARP with uppercase W, or enable automatic startup WARP using
--warpOnStartup true --warpStartupTimeout 30. INI defaults in [SIDPlay2] are Warp On Startup=true and
Warp Startup Timeout=30. The runtime manual switch is not saved.
Open View → VIC-II on the desktop or the browser's VIC-II tab to inspect sprite and character
memory, screen cells, registers, counters and bus state. Live inspection starts switched off. When enabled,
collection runs at 10 Hz only while the view is selected;
snapshots and freeze also capture the rendered video with borders. The picture includes a raster/cycle marker and
clearly shades pixels the renderer has not committed yet; a separate memory preview inspects the current data.
Memory preview is selected first; Rendered output includes optional sprite-position guides. While the inspector
is visible or breakpoints are armed, the browser renders every frame without changing the playback frame-rate
setting. Closing the last view and disarming returns rendering to its normal frame-skipping behavior.
Video pixels are copied only on explicit capture or a breakpoint hit. Explicitly armed visual breakpoints remain active
when the view is hidden,
pause at the reported emulation boundary, and retain a versioned JSON capture for debugging. Inspection is centralized
outside the VIC/CPU execution loops. Memory previews show the capture instant.
The optional Raster timeline → Record one frame records eight sprite lanes, DMA intervals, register changes,
bank and sprite-pointer changes. Queue a recording while paused and resume to start at the next raster zero.
Raster breakpoints wait for the recorded frame, and a hit keeps the timeline up to that point. Select a lane or
change to inspect historical values without rewinding playback. Recording is off by default, limited to one
frame and 8,192 changes, and can be cleared or exported separately as JSON.
See the User Guide for conditions, cycle conventions, API use and validation
commands.
Release artifact checks run after packaging during mvn -Djavafx.platform=linux -Prelease verify.
They require the application JAR with its distributed dependencies, the NetSIDDevice JAR and all five web ZIPs.
The application plays a bundled tune with each software SID backend
and chip model; NetSIDDevice replays its SID writes through every bundled filter configuration. Both run in isolated
JVMs with captured PCM output, without a display, sound device, network connection, or the project's compiled classes.
The ZIP checks cover runtimes, resources, filtered templates, and local dependencies of all four HTML examples and
the Vue jukebox. Missing artifacts fail the build. Reports are in target/failsafe-reports/.
To recheck an already packaged release without running the emulator suites or rebuilding the web backends:
mvn -o -Dmaven.test.skip=false compiler:testCompile failsafe:integration-test failsafe:verify
Use -Drelease.artifacts.directory=/path/to/release to check another copy of the artifacts for the current POM version.
The application check loads target/standalone/jsidplay2-<version>-ui.jar with its runtime dependency JARs.
Use -Drelease.application.directory=/path/to/unpacked/application to check a different application directory.
NetSIDDevice's standalone JAR includes its shared classes and support libraries, selected by
jar-jsiddevice.xml. Its checks resolve every packaged project class against
that JAR alone and exercise the merged archive services by reading a ZIP entry before replaying SID writes.
The Central library has separate isolated checks, run with mvn -f pom.central.xml clean verify.
ConvertServletAudioDriverTest checks fresh encoders and throttling drivers for each request, including
overlapping players writing WAV audio into separate servlet response streams.
Check the inline web examples and the distributed README's runnable snippet with:
node src/test/scripts/example-playback-test.mjs
This covers audio/video timing through silent boot, PAL/NTSC, delayed rendering, WARP, shared buffers and Quad Core
startup.
With the generated TeaVM outputs and Chrome installed,
EXAMPLE_ALL=1 node src/test/scripts/example-sync-browser-check.cjs
measures real browser playback across all four backends and writes target/example-sync/browser-results.json.
Use EXAMPLE_LAYOUT=1 EXAMPLE_LAYOUT_PLAY=1 node src/test/scripts/example-sync-browser-check.cjs to check phone
portrait/landscape layouts, readable controls and display sizing from 320 to 1024 pixels. It saves measurements and
phone screenshots in target/example-sync/.
The media testing acknowledgements credit
the preservation projects, researchers and original software authors behind the disk-image and protected-loader
regressions, with links to source records and notices.
The program tests run headless, sequentially, with a fresh emulator per test and hardware variant. No desktop, display
server, or audio device is needed. Model-sensitive contracts select C64/MOS6526 and C64C/MOS6526A within one run;
independent programs run once. Existing fixture-specific hardware baselines and known exclusions are retained.
# Run the test bench and generate the published Surefire report.
mvn -Djavafx.platform=linux -Prelease clean verify
# Inspect mismatch screens and the complete outcome summaries.
# target/deploy/tests/visual/index.html
# Surefire report: target/deploy/tests/index.html
The latest published test report is updated at the same URL. The Surefire report
shows Pass Rate (without skipped) (passed / executed) and Pass Rate (with skipped) (passed / total), where
executed = total - skipped and passed = executed - failures - errors. For example, 75 passed, 5 failed and 20 skipped
means 93.75% without skipped tests and 75% with skipped tests. Rates describe the selected tests in that run, not code
coverage. A zero denominator is shown as N/A. Both percentages reuse the same recorded results; report generation does
not run the tests again.
The gallery is created on every Surefire run and opens directly in a browser. Headless program tests update it after
each result. A component-only selection can leave the gallery empty because those tests do not capture screens; the
Surefire report still lists every test. The gallery defaults to failures, while its pass/fail/skip outcomes remain
available in the filters and summaries. Exact visual differences show expected, actual and difference images with a
differing-pixel count and first differing coordinate. Captions identify hardware, clock, source provenance and capture
cycle. Passing and skipped checks have textual results without screenshot panels. Raw frames and reference artifacts
remain available through visual/artifacts.json, including frames consumed by browser-parity checks. Archive the
gallery before another invocation replaces it.
Reference-backed diagnostic checkpoints are automated visual assertions. A complete frame is captured at a scheduled
emulated checkpoint or a documented guest state before its emulated deadline, with filtering disabled; every VIC color
pixel must match, using fixed PAL/NTSC palette mappings and the established viewport alignment. Frame selection does not
inspect pixel differences. There is no similarity threshold, masking or rescaling. Exact matches report JUnit PASS,
differences report FAIL, and missing or non-comparable visual oracles remain SKIPPED with specific reasons.
Photographs remain manual because their pixel coordinates cannot be compared directly. Visual acceptance covers the
captured screen; audio, analog measurements and interactive requirements remain documented separately.
The animated VICII/frodotests/3fff.prg checkpoint observes the original self-modifying operands and waits for the
KERNAL cursor's off phase within its existing ten-million-cycle budget. It reads guest state without changing it. The
program and existing VICE 3.10 image are hash-pinned, and all 104,448 pixels remain asserted.
The phase audit records the original
10,809-pixel mismatch, the separate 64-pixel cursor difference and the exact matching frame. Run its focused regression
with
mvn -o -Dmaven.test.skip=false -Dtest=ViceProgramTest -Dvice.filter=808dc50db864cbce compiler:testCompile surefire:test.
The Surefire report embeds comparison images only for failures. Keep the visual/ directory with the report when
copying or publishing it. Saved artifact manifests retain the observed JUnit outcomes, so offline regeneration never
upgrades an old skip into a pass. Reference bindings and recorded image paths are verified before refreshing a current
report; invalid or missing evidence stops regeneration without replacing the published report. Rerun the diagnostic
suite to measure new outcomes.
Every existing manual VICE checkpoint has an audited reference decision, including specialized CPU, CIA and SID tests.
Hardware settings, checkpoint identities, program/ROM hashes and reference provenance are verified explicitly. Matching
upstream images take precedence; other suitable visual states have independently repeated VICE examples. Nonvisual
diagnostics retain an explanation of why a C64 screen cannot validate their output. The gallery reports reference
availability and actual visual PASS/FAIL counts separately.
Diagnostic coverage is shown in both reports and exported to visual/manual-reference-coverage.json. manualCases
counts the documented inventory; it is not a test-debt count. Audited not-applicable and photograph decisions have
category external-oracle-required and contribute to externalOracleRequired. These require audio, analog,
physical-input or human measurement evidence. Valid unavailable decisions have category reference-unavailable. Both
categories are excluded from unresolved test debt. unresolved counts missing, unknown or invalid reference decisions.
Reference comparisons are classified as visual-reference-covered or visual-reference-difference; an audited
reference without a recorded pixel verdict is visual-reference-unchecked. Photographs still contribute to
withReferences, which describes reference availability. Recorded JUnit outcomes and pass rates are preserved; visual
differences and reference-validation failures remain failures.
The warm-up-dependent SID/wf12nsr/quicktest.prg remains an external-measurement diagnostic. Its VICE picture and
capture metadata are retained under src/test/resources/vice/manual-references/examples/ as documentation; they are
excluded from pixel acceptance. The separate wf12nsr hardware-reference programs remain active.
Waveform-zero bit fade uses a deterministic warm-chip approximation in both SID backends.
The evidence and model notes distinguish published physical
measurements from exact software timing contracts and record validation. Run the focused checks with
mvn -Prelease test -Dtest=SIDFloatingOutputTest,SIDRegisterRegressionTest,SIDWaveformTimingTest,SIDOutputRegressionTest.
The continuous SID/bitfade/test1osc3.prg display remains a diagnostic; a matching VICE picture does not establish
analog hardware accuracy.
The combined-waveform hardware collection pins 136
physical OSC3 captures and Dag Lem's original sampler. Both cores use
a measured 8580 profile for triangle+saw and pulse+saw. Fixture,
hardware and protocol checks run in the normal suite; the opt-in comparison reports per-capture differences without
inventing a universal tolerance. Generate its interactive report in target/deploy/tests/sid-combined-waveforms/ with
mvn -Dmaven.test.skip=false compiler:compile compiler:testCompile surefire:test -Dtest=SIDCombinedWaveformFixtureTest,SIDCombinedWaveformSamplerTest,SIDCombinedWaveformHardwareTest exec:java -Dexec.mainClass=sid.SIDCombinedWaveformAudit -Dexec.classpathScope=test.
Invalid references and configuration mismatches fail explicitly. Offline report generation preserves an already-recorded
validation failure, while rejecting newly corrupted evidence; it never converts an old skip into a visual pass.
Every VICE image is labeled “VICE-generated emulator capture — not recorded on a real machine.” in both reports and
in the standalone PNG's provenance metadata. Publication upstream alone does not prove a real-machine recording: images
without documented capture provenance say “Upstream reference — capture method/hardware origin unverified.” Labels
preserve the image pixels. Reference decisions, commands, hardware, capture timing, source revisions and SHA-256 hashes
are stored in src/test/resources/vice/manual-references/, separately from the pinned upstream fixtures.
The current test-program snapshot is e7aa2aab2e5ac4208fcd53acd4bb237902149e4f (2026-10-27), independently of the VICE
emulator version. It includes the 1581 CIA FLAG regression and its .d81 image, and the extended Ultimax capture
budgets. vice-import.py --upgrade-from <previous revision> updates only fixtures whose existing bytes still match the
previous audited hashes. Scenario IDs survive moved upstream lines and deadline changes; hardware changes require a new
binding.
Automatic screenshot references are generated with VICE 3.10 in
src/test/resources/vice/generated-references/3.10/. Manual visual checkpoints use vice/manual-references/. Both
datasets record the executable and source-archive hashes, repository ROMs, exact chip settings, commands, capture
cycles, and two matching independent launches. Negative-control tests retain their deliberately different upstream PASS
image; the new VICE capture is shown separately. Hardware measurements, photographs and historical regression fixtures
retain their own provenance. Ordinary tests require neither VICE nor network access.
The two PAL spritefetchbug/test-136-2a.prg cases retain the original upstream full-image contract
for VICE bug #217. Fresh 3.7.1 and 3.10 captures agree but omit the
documented pointer-bus race, differing from that contract at the same 160 pixels. Both the unchanged upstream
expectation and fresh VICE comparison are retained. Hash and configuration guards reject a changed program/reference
pair; the upstream PNG's physical capture origin remains unverified.
The MOS8565 spritesplit/ss-mc-hires.prg and ss-mc-hires-exp.prg cases retain the upstream images corrected in
r45854 after the hardware check documented in VICE bug #2164. Fresh
VICE 3.7.1 and 3.10 captures match the superseded 2016 references and differ from the corrected images by 44 pixels
each. Full-image assertions and fixture/configuration guards remain active; the fresh VICE captures are retained as
comparisons. These are upstream software reference images, not new real-machine recordings. The bounded audit is in
vice/generated-references/3.10/sprite-split/.
Both PAL split-tests/modesplit/modesplit.prg cases retain the crafted upstream r45900 expectations checked against a
Breadbox and C64C on 2025-12-15. JSIDPlay2 matches both whole images; VICE 3.7.1 and 3.10 differ by 348 MOS6569 pixels
and 124 MOS8565 pixels. The full-image assertions remain active, with guards on the exact program, PNGs, provenance
notes and hardware bindings. These are upstream software expectations, not new physical captures. The audit is in
vice/generated-references/3.10/pal-modesplit/; the separate NTSC checks remain strict.
The NTSC modesplit investigation found two separate disagreements: JSIDPlay2 differs from VICE at 192 pixels and from
the crafted upstream image at 134 other pixels, with no overlap. VICE 3.7.1 and 3.10 agree. Fetch traces and the older
R01 hardware photograph do not establish a safe timing correction for the current R04 binary, so the emulator and all
strict assertions are retained. The three-way comparison is in vice/generated-references/3.10/ntsc-modesplit/.
To regenerate the full software reference set, first collect the actual manual configurations with
mvn -o -Dmaven.test.skip=false -Dtest=ViceManualSuite -Dvice.manual.collectOnly=true surefire:test. This collection
run explicitly reports unresolved comparisons. With Python Pillow and an isolated VICE 3.10 x64sc build, run both
generators (substitute the executable, data directory, source archive and build description):
python3 src/test/scripts/vice-screenshot-references.py --vice /path/to/x64sc --vice-data /path/to/vice/data --source-archive /path/to/vice-3.10.tar.gz --build-description 'Official VICE 3.10 source; describe configure options'
python3 src/test/scripts/vice-manual-references.py --vice /path/to/x64sc --vice-data /path/to/vice/data --source-archive /path/to/vice-3.10.tar.gz --build-description 'Official VICE 3.10 source; describe configure options' --prefer-generated --refresh
python3 src/test/scripts/vice-reference-audit.py
The generators use disposable media and reject incomplete, nonrepeatable, SID-initialization-failed or audio-overflow
captures. VICE 3.10 uses the initialized dump playback sink directed to the null device, a WAV recording sink,
-speed 100, and -soundwarpmode 1. Warp suppresses audio-file writes while SID clocks and register reads remain
active; these screenshots do not establish recorded-audio accuracy. The headless dummy sink leaves output channels
uninitialized, while -speed 10000 makes reSID initialization fail. Completed capture logs must confirm an active reSID
engine. The current NTSC video-mode programs receive newly paired captures; their incompatible historical images remain
documented separately. Audio, analog voltages, physical inputs and chip warm-up measurements still need external
evidence. Run the complete suite after generation, then generate the report with the command below. Its header records
both reference versions and the test-program revision, and its publication folder contains the capture manifests and
PNGs. Report generation preserves the recorded frames, outcomes and provenance; it cannot convert an earlier skip to a
pass.
Maven explicitly writes the publication gallery to target/deploy/tests/visual. Direct IDE/JUnit launches without an
emulator.visual.directory override use target/emulator-runs/<process-id> so they cannot clear the publication
gallery. The exhaustive twelve-billion-cycle CPU checks allow thirty minutes of host time; their emulated deadlines and
guest-verdict assertions stay unchanged.
Standalone Wolfgang Lorenz programs can show OK followed by a LOAD ERROR for the next program in their original
disk-suite chain. The current program's stable green verdict determines its result; each next program is tested
independently.
For an already built checkout, these direct goals avoid unrelated web packaging steps and override the development
profile's default test skip:
mvn compiler:compile compiler:testCompile surefire:test -Dmaven.test.skip=false
# Select a suite or an individual Java test method; all applicable variants remain selected.
mvn compiler:testCompile surefire:test -Dmaven.test.skip=false -Dtest=FrodoTest
mvn compiler:testCompile surefire:test -Dmaven.test.skip=false '-Dtest=ViceCIATest#detectCIA6526'
# Optional focused model override. Contracts pinned to another model are excluded.
mvn compiler:testCompile surefire:test -Dmaven.test.skip=false -Dc64model=C64C
The existing vice.cpu.filter and vice.lorenz.filter regular-expression filters still select program subsets. To
archive results in CI, collect target/deploy/tests/ and target/surefire-reports/ even when the test command fails.
After a failed test run, or to regenerate the report from an existing run, use:
mvn -Prelease compiler:testCompile surefire-report:report-only exec:java@publish-test-statistics
This compiles the report helpers and regenerates the percentages and manual-test comparisons from
target/surefire-reports/ and the existing gallery, without running tests or replacing screenshots. Release verify
runs the tests once, then generates and processes the report automatically.
Before uploading target/deploy/tests/, validate the saved publication:
python3 src/test/scripts/vice-report.py --verify-publication
This reads the existing files without running tests or changing target. It checks the visible report totals against
Surefire, catalogue completeness, recorded gallery outcomes, raw image files, diagnostic decisions, reference
manifest/image hashes, and local HTML links. Assertion failures and documented skips remain valid recorded outcomes. The
JSON summary reports Java code coverage separately as available or unavailable; diagnostic coverage and pass rates
do not substitute for Java coverage. Add --require-code-coverage when Java coverage must accompany an upload. To
validate another saved publication, use
--output /path/to/tests/vice --reports /path/to/surefire-reports --catalog /path/to/matching/catalog.json.
Enable JaCoCo before the next full test run. This command runs the tests and replaces the normal test outputs; archive
the current publication first if it must be retained:
mvn -Prelease,coverage jacoco:prepare-agent@coverage-agent resources:resources resources:testResources compiler:compile compiler:testCompile surefire:test jacoco:report
The HTML report is target/deploy/tests/coverage/index.html, with jacoco.xml
and jacoco.csv alongside it. Uploading the deploy directory publishes it at
tests/coverage/. Execution data is target/jacoco.exec; archive it with the
reports and Surefire results to retain a baseline. Each test run replaces the
execution data.
If tests fail, Maven stops before the report goal. Run the reporting command
below even after assertion failures, then validate the publication. These commands
reuse the saved results without rerunning tests or deleting target:
mvn -Prelease,coverage jacoco:report surefire-report:report-only exec:java@publish-test-statistics
python3 src/test/scripts/vice-report.py --verify-publication --require-code-coverage
Report generation requires the saved target/jacoco.exec and the matching compiled production classes. A run made
without the JaCoCo agent has no recoverable Java coverage; Surefire XML and screenshots cannot reconstruct it. Keep the
execution data and matching class files when archiving a coverage baseline. The coverage plugin must be downloaded once
before these commands work offline.
For the regular release build, use -Prelease,coverage; verify generates the
report after passing tests. Add -Dtest=REUTest,REUBusArbitrationTest to the test
command for a focused run, whose coverage is only a partial measurement.
The report includes all production Java code, including unexecuted code, and
excludes test code and dependency JARs. Coverage is opt-in, preserves custom
-DargLine options, and adds no percentage gate or changes to assertions.
It measures Java execution; hardware-backed tests establish C64 compatibility.
For new program tests, extend common.HeadlessTest. Use @C64Models for method/class requirements or
common.ModelCase for parameterized cases; mark fixture baselines with fixed = true when another preset is
inapplicable. Old/new @ViceSource pairs expand automatically. Parameterized classes must use
@UseParametersRunnerFactory(ViceSourceParametersRunnerFactory.class) alongside @RunWith(Parameterized.class). Use
startProgram, scheduled hardware operations, bounded waits, and checkpoint("name"); the harness owns final capture
and shutdown. Polling and observations use emulated-cycle boundaries, holding the clock while a sample is inspected so
host scheduling cannot consume a program's cycle budget. Use the harness helpers for waits and program restarts.
Existing logical-color screenshot comparisons remain exact and produce readable gallery images.
# Deploy the existing build and reports without re-running tests.
mvn -Djavafx.platform=linux -DskipTests -DserverUrl=scp://<user>@<hostname>/home/ken deploy -Prelease