Testing
How to verify Muoto on a Sailfish OS device. Prefer real hardware; emulator coverage for Lipstick/APK is limited.
Build and deploy
Use the Sailfish SDK (sfdk):
~/SailfishOS/bin/sfdk config target=SailfishOS-<version>-aarch64 # or armv7hl
~/SailfishOS/bin/sfdk build
~/SailfishOS/bin/sfdk deploy --sdk
After installing an RPM over SSH (no active GUI session at install time), user units may be missing. As defaultuser:
ln -sf /usr/lib/systemd/user/harbour-muoto-launcher-icond.service \
~/.config/systemd/user/
ln -sf /usr/lib/systemd/user/harbour-muoto-install-listener.service \
~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable --now harbour-muoto-launcher-icond harbour-muoto-install-listener
Confirm session D-Bus name org.muoto.Launcher1 is owned before calling ApplyIcons.
Manual smoke
- Open Muoto → Icons tile → apply a pack (and optionally overlay). Use Fonts for font packs.
- Check homescreen: Jolla, harbour apps, and APK icons look themed.
- Switch to a second pack; icons should follow without a full reboot (APK may need pulley Restart homescreen if Lipstick caches absolute
Icon=). - Icons page or Dynamic icons tile: enable clock or calendar when the pack ships
dynclock//dyncal/. - On Icons (and Fonts if needed), select Default and Apply → stock;
activeIconPackisdefault. - Display density: change scale, apply, restore. The home tile subtitle should read the live values (
2.0 / 86, orDefaultper control). - Quick app switching tile: toggle and Apply, then check
dconf read /desktop/sailfish/experimental/quickAppToggleGestureflipped and the tile subtitle followed without restarting anything; the slow edge peek should reach the previous app.
Automated device scripts
Copy scripts from the repo onto the device (or run via SSH). Run as defaultuser unless noted. Sudo password override: MUOTO_SUDO_PASS.
| Script | Purpose |
|---|---|
scripts/device-test-3.2.sh | Smoke: units, cap_dac_override, manifest, update-icons; --destructive runs restore |
scripts/device-test-preupgrade-install.sh | T-20 pre-upgrade, T-21 install re-theme, T-22 folder ambient, T-23 dynamic icons |
scripts/pipeline-review-full.sh | Pipeline slices p1…p13 (includes T-20…T-23 as p10…p13) |
scripts/pipeline-review-p5-p9.sh | Subset of pipeline cases |
scripts/device-test-install-race.sh | R1…R9 install race matrix (see Install races) |
scripts/device-test-install-trigger.sh | Per-install automatic theming (see Install triggers) |
scripts/run-install-race-host.sh | Host driver: syncs fixtures, runs a suite over SSH, pulls artifacts |
# On device
bash device-test-3.2.sh
bash device-test-3.2.sh --destructive
bash device-test-preupgrade-install.sh --pack haiku
bash device-test-preupgrade-install.sh --pack haiku --skip-install --skip-folder --skip-dyn # T-20
bash device-test-preupgrade-install.sh --pack haiku --skip-preupgrade --skip-folder --skip-dyn # T-21
# Or from host
ssh defaultuser@<device> 'bash -s' < scripts/device-test-3.2.sh
Probe package overrides for T-21: MUOTO_PROBE_PKG, MUOTO_PROBE_DESKTOP.
Auto-apply / upgrade / uninstall expectations are detailed under Automation.
Install races
scripts/device-test-install-race.sh hunts the windows where an app installed next to another one never gets themed: the listener debounce (1.5 s), the desktop-scan debounce (2 s), Lipstick’s holdback (~2.4 s) and the apkd verification pass (15 s). Each scenario installs real packages, waits for the icon lock to go idle, then checks the entry is themed — Icon= under launcher-icons/ for redirects, a manifest entry for inplace natives.
| ID | Scenario |
|---|---|
| R1 | Two RPMs back-to-back |
| R2 | APK then RPM back-to-back |
| R3 | RPM then APK back-to-back |
| R4 | APK + RPM at each interval, both orders |
| R5 | RPM + RPM at each interval |
| R6 | APK installed the moment apkd reports containerReady, re-checked after the 15 s verify pass |
| R7 | ApplyIcons overlapping an RPM and an APK install |
| R8 | Three RPMs with no gap (listener re-arm path) |
| R9 | Same RPM installed twice 1 s apart |
Fixtures are plain RPM and APK files in one directory (MUOTO_RACE_FIXTURES, default ~/muoto-race/fixtures on device). The suite installs the themepack from there if it is missing.
Overlay must be on. The suite applies the pack with overlay enabled and aborts if /apps/harbour-muoto/iconOverlay is not true: apps the pack has no icon for would otherwise stay stock, making a missed re-theme indistinguishable from a pack gap.
# From the host (syncs fixtures, runs, collects into scripts/race-results/<stamp>/)
MUOTO_SUDO_PASS=… bash scripts/run-install-race-host.sh --quick
MUOTO_SUDO_PASS=… bash scripts/run-install-race-host.sh # full matrix
MUOTO_SUDO_PASS=… bash scripts/run-install-race-host.sh --skip-sync -- --only R4 --intervals "1 5 9"
# On device
MUOTO_SUDO_PASS=… bash device-test-install-race.sh --quick
--quick runs R1–R3 and R6 at intervals 1–3 s. --heavy swaps in a large APK for soak runs. Per-scenario artifacts land under the output dir: listener and icond journals, last-op.json, every probe Icon=, and a signals.txt count of re-armed / refreshApkIcons / clobbered lines. The suite uninstalls its fixtures between scenarios and at the end unless --keep.
Install triggers
scripts/device-test-install-trigger.sh installs one package at a time and fails unless that install caused automatic theming. It does not call ApplyIcons after the initial pack+overlay apply, and it does not wait for a visual check.
Each case must satisfy all three:
- The new app is themed (RPM: every hicolor slot differs from the RPM dump; APK:
Icon=underlauncher-icons/). - The install-listener journal shows
scheduled apply/update-iconssince the install started. last-op.jsonsequence moved on anApplyIcons, or icond loggedrefreshNewDesktops/refreshApkIcons.
| ID | What it installs |
|---|---|
| T1 | First RPM with a pack icon (harbour-tooterb) |
| T2 | Second RPM, overlay only (harbour-fintune) |
| T3 | Third RPM, overlay only (harbour-fiatagenda) |
| T4 | First APK (com.facebook.lite) |
| T5 | Reinstall of the already-themed RPM |
| T6 | Uninstall then install the APK again (apkd-install of the same file is a no-op) |
MUOTO_SUDO_PASS=… bash scripts/run-install-race-host.sh --trigger
MUOTO_SUDO_PASS=… bash scripts/run-install-race-host.sh --skip-sync --trigger
What “good” looks like after ApplyIcons
dconf read /apps/harbour-muoto/activeIconPackis the full package name (harbour-themepack-<name>), not the short name./usr/share/harbour-muoto/launcher-manifest.jsonexists.- APK / redirect entries: PNGs under
launcher-icons/andIcon=/usr/share/harbour-muoto/launcher-icons/…. - Native inplace:
Icon=may still beharbour-…while the launcher-size hicolor PNG and manifestmode=inplacereflect the pack. - Live silica under
graphic-*is unchanged (no bulk ambient); foldericon-launcher-folder-*may change when folder theming applies.