Files
mu300-linux/tests
2026-10-24 11:06:50 +03:00
..
2026-10-17 14:40:22 +03:00

Tests

python3 -m unittest discover -s tests            # everything this machine can run
MU300_TEST_SHELLS="busybox sh" python3 -m unittest discover -s tests   # one shell only
python3 -m unittest $(cd tests && python3 shard.py 4 0)      # what CI shard 0 of 4 runs; PRs add MU300_TEST_SHELLS="busybox sh" (quick mode)
powershell -File tests\installer.Tests.ps1        # Windows: install.ps1's functions
powershell -File tests\answers.Tests.ps1          # Windows: install.ps1 and uninstall.ps1 as a whole, against the fake adb

Standard library only (lz4, the command or pip install lz4, for the boot image tests). CI runs them on Ubuntu, macOS and Windows (.github/workflows/tests.yml).

file what
test_static.py every script parses under each shell that runs it; device programs are executable; rules from past bugs (no double quotes in install.ps1's device commands, ASCII-only PowerShell, init looks for partitions after the modules, every function install.ps1 calls at its top level defined above the call)
test_i18n.py tools/i18n.sh: every translation with every placeholder, arguments passed through untouched, answers in all three languages
test_device_scripts.py mu300-device, mu300-lan-ip, mu300-led (both devices, 4G/5G on the F50, the SIM in use and its live-switch blink on the U30 Air, the timeout, the siren, the 5.4 LDO switches, the U30 Air's battery LED as ZTE's firmware: colour by level, breathing while charging, no timeout on the charger or for the low-battery red, the heat alarm over it), thermal-guard (the heat alarm, the handoff to the kernel's thermal zone and back, the backstop on top of a kernel that does not hold the SoC; extra-modules loading mu300_thermal), mu300-toolkit stress stopping itself at 95 C (ToolkitStress), mu300-nfc (a fake NFC tag: ZTE's own Wi-Fi record byte for byte, URLs, text, what sync leaves alone), mu300-ttl (stub nft), mu300-wifi-band, mu300-buttons, mu300-usb (a fake charger: never 5 V against a supply; `pd on
test_device_scripts.py mu300-device, mu300-lan-ip, mu300-led (both devices, 4G/5G, the timeout, the siren, the 5.4 LDO switches), thermal-guard (the heat alarm, the handoff to the kernel's thermal zone and back, the backstop on top of a kernel that does not hold the SoC; extra-modules loading mu300_thermal), mu300-toolkit stress stopping itself at 95 C (ToolkitStress), mu300-nfc (a fake NFC tag: ZTE's own Wi-Fi record byte for byte, URLs, text, what sync leaves alone), mu300-ttl (stub nft), mu300-wifi-band, mu300-buttons, mu300-usb (a fake charger: never 5 V against a supply), mu300-next-boot and early-recorder on slot a and slot b (NextBoot, EarlyRecorder); mobile-data's data roaming (DataRoaming, FINDINGS 120: a stub modem answering stat 1 and 5, the dial held and released, the watchdog's two moves without a redial loop, the second card's setting and channel, the values, the writer, the test hook)
test_backup.py mu300-backup (FINDINGS 155) on test_api's fake device: export of every section on Ubuntu, OpenWrt and openwrt-luci (file 0600, never through a link, no engine binary's path, keys with options left out), the passphrase seal (wrong passphrase, a changed character, hostile rounds), import with a dry run that changes nothing and a restore of what differs, a round trip with the VPN module (a fake CLI), another model only with --force, the other system's file, hostile files refused whole (unknown keys, wrong kinds, control characters, 4 MiB, each setter's own rules), the lock tool and the real forwarding adapter, mu300-api backup.export / backup.import and its job; secrets never in an argument list, a job file or what is printed
test_mu300_thermal.py mu300_thermal's trend for step_wise (upstream/modules/mu300_thermal/mu300_trend.h, FINDINGS 166), compiled on the host: sensor noise is no trend, the cooling goes up fast above the trip and back a step a second, it is held under the trip; a small plant where the core's own trend runs away past 95 C and this one holds it under 90 C
test_usb_pd.py the U30 Air's USB-C port controller (patches 0019/0020, FINDINGS 150): off unless loaded with enable=1, only on the U30 Air's device tree, no VCONN, no dummy regulator, the Type-C block put back at remove; the charger refuses its boost against an outside supply; the driver's callbacks compiled against a fake PMIC (data and power roles apart, the boost once per change, the input current only for a PD contract, one completion per transmission, the RX FIFO emptied after a frame and on errors, both message IDs cleared at a hard reset and a new session)
test_u30air_charger_ncm.py kanoqwq's kernel patches 0024-0026 (FINDINGS 207, 208): the U30 Air's charger takes the battery node's CV bounded by the chip and turns the safety timer off with termination kept; its 3 A (ICHG from the battery node, a 3 A Rp as 3 A) and the NCM retry of a busy timer flush are behind parameters that are off by default
test_installer.py which adb device the installers take: they ask whenever it is not the only one and an F50/U30 Air; the storage choice (Storage), the settings the installer hands to the device (InstallEnv), the hotspot import on a card (ImportHotspot), erasing the card (SdErase) and the free region (Region)
test_vpn_hooks.py the places that work with the VPN module do nothing harmful without it: mu300-toolkit's VPN menu (how to install it, or the menu), mobile-data's guard, the LuCI panel's VPN capability and action (test_power and test_wifi_client cover theirs)
test_wifi_client.py wifi-client: the scan (iw and wpa_cli output: WPA2, WPA2/3, WPA3, UTF-8 names, no neighbour-report BSSID or hidden network), the password from stdin or a file and never on a command line, a WPA3-only network refused at once without SAE and joined with it, the uplink shared (the exact nft rules closed, shared and removed, through a join, a lost and a returning link, a failed or interrupted join and a supplicant that will not stop; nothing past the VPN's kill switch; fw4's wan zone on OpenWrt), hostile names shown as text everywhere, one validator for every way a name or passphrase comes in (the toolkit too), disconnect keeping the hotspot after a reboot
test_extra.py extras: mu300-update's install and update of extras, mu300-extra install/remove/link against a fake release server; the VPN module of dikeckaan/mu300-linux-vpn (a fake module tarball: online from MU300_VPN_URL against its SHA256SUMS, offline `--from FILE
test_update.py mu300-update: release files per system and kernel, boot image byte helpers, whether a kernel bundle may go onto this device, the Linux slot it works on, the boot image it builds from a device's own stock image (FromStock: a file another run appended to is refused as that), the kernel step as a whole against a boot partition that is a file (KernelStep, FINDINGS 177: module sets linked, never copied; the kept image and its set change together; too little room, a failed write, modules that do not go in and a stopped run leave nothing behind and the image and set in place as they were; the kept image given up when the room is short; sets no image runs removed; a system the same run replaced gets the slot image's set from <os>.old), and one run at a time (Lock: the second says the holder's pid and exits 1, with flock and with the pid directory without it; the lock of a run that is gone, a pid that is not one or a live pid that is no mu300-update taken over with a line saying so; a link, a file or a directory of another mode at the lock path, a link where the lock file goes, or a directory that cannot be made refused with exit 1, never run unlocked; what locks and what only reads)
test_user_packages.py packages installed on the device across an update (#116): upk_record (OpenWrt world file and package database, Ubuntu's manual packages, less the image's etc/mu300/image-packages; their UCI files set aside, never the image's own; Ubuntu's apt sources and the keys they name kept, never over the image's, off for another release with nothing to install; their systemd units' state, aliases and templates left out; the same block in tools/android-install.sh), a kept source that fails apt-get update turned off (offline: none), the units enabled/disabled/masked as they were, apply_one, and mu300-user-packages with stub apk/apt-get/uci (installed again with their settings and services back, one by one after a failure, offline for five boots then given up, skip, a missing LuCI theme taken out; the DNS check fails closed: a forwarder only of a package gone for good with another server left, never with the VPN on, an unknown owner, the project's port or a port that comes up in the window, the only one reported and removed by repair-dns alone)
test_carry.py an update keeps everything the user made (FINDINGS 85): tools/carry/mu300-carry.c, built here with the machine's C compiler (Linux only, else skipped) - copy and link with modes, times to the nanosecond, hard links, a hole, odd names, extended attributes; never through a link of the target; its manifest against tools/image-manifest.py's of the same tarball - and mu300-update's carry block on fake systems made of an old image with its manifest, what a user did, and a new image, under each shell and with busybox for every command: what the user made goes wherever it is; a changed image file under /etc is the user's and the release's is set aside when both changed it; programs, the project's own and a package's scripts are the release's and the user's edit is set aside; deletions; another kind of file; where the release put something else; never carried; packages and what their manager changed; accounts and the numbers they own; the manifest of an older release from the new image; none; by link; no room; the report. apply_one and the installers' update with an image that brings the block (run from the image by its busybox, the old system whole for a rollback, --no-rollback, the old way on request or without the helper, a run cut off, never back to an older release), and that the image builds, the release audit and both callers are wired to it. On real release images: tests/update-experiment/run.sh (docker, privileged; not part of CI)
test_boot_init.py boot/init: the card is looked for before the internal region, under any mmcblkN; a foreign or empty card falls back; the 300 s timer and the conditional wait; the slot init takes (Slot: command line, device tree, image, a mismatch) and the block it restores; Fsck: e2fsck only on a root whose superblock records an error, never a boot gate (exit codes, timeout, no binary, a real e2fsck when e2fsprogs is installed)
test_vendor_ids.py the vendor daemons' account (FINDINGS 41): ueventd-perms.sh is the generator's output, no node more open for any login user or for others than with v2026.10.18's script (tests/fixtures/ueventd-perms-v2026.10.18.sh), no world-writable mode, no numeric id, the calibration partitions the vendor account's, the GPU root:video, the id mapping, the ids at run time (Ubuntu, OpenWrt, the initramfs); android-run starts modem_control/refnotify as mu300vnd with their capabilities only; the account made at boot (a failure never stops the modem), in the images, and kept by mu300-update's merge; one decision for nodes and daemons (FINDINGS 41a, #314): for every combination of account, useradd and setpriv (util-linux, busybox's, none) the uid ueventd-perms.sh gives the modem's nodes is the one modem_control runs as, and no account is made that nothing would run as
test_emmc_lookup.py every Linux-side lookup by partition name (init, early-recorder, mu300-update, android-vendor-start) takes the eMMC's partition, never a card's with the same GPT names, whichever of mmcblk0/mmcblk1 the card is; emmc_dev never falls back to a card; ueventd-perms.sh touches no block device by number
test_android_mount.py tools/android-mount-mu300root.sh -u: an unmount whose loop Android's umount already freed succeeds, a loop left attached is detached, a failed umount or detach fails
test_android_install.py tools/android-install.sh on the SD card: a blank card is formatted, a foreign ext4 and an adopted or busy card are refused; the marker of an internal installation; pushed extras (the VPN module), and the warning when a VPN in use has no module on update; Stages (FINDINGS 50): a card stage is ended by its deadline or by 120 s without I/O progress on the card's counters, its whole process group stopped and a lock keyed by the boot id written; a re-run in the same Android boot refused, a stale lock removed, a clean run leaves none; after a timeout no sync and no unmount, and never the OK line
test_boot_image.py boot/build-boot-image.py: the generic ramdisk, the U30 Air's modules and order, the four misc blocks and --linux-slot (SlotBlocks)
test_magisk_installer.py android/magisk/installer/mu300-install.sh on a fake device (fakedevice.py): Conf (the settings files: trusted and untrusted, validation, never run), AndroidSide (Android's own shell, not Magisk's busybox), Plan (model, slots, where Linux goes, refusals, the dry run, the example file), WorkDirectory (the root-only directory, nothing mounted is deleted), Install (what is written, verified, misc armed last; a failure leaves Android booting; the boot image read back from the partition into a file and compared - a difference or a failed read never arms Linux; a lock left by a timed-out SD-card stage of this boot refused before the plan; the device log kept on failure), Bootchain (the plan line, a refusal stops before anything, MU300_SYNC_BOOTCHAIN), Password (the images' own - ubuntu/ubuntu, OpenWrt's root without one - for every new system, one from the settings file hashed and never shown, the note file, the setting removed once used)
test_magisk_zip.py customize.sh in a fake Magisk environment (Customize), tools/make-magisk-zips.sh (Builder: eight zips, the allow-list, the manifest) and, with MU300_MAGISK_ZIPS pointing at a release's real zips, ReleaseZips
test_bootchain.py tools/android-bootchain.sh on a fake by-name directory: identical slots write nothing; differing images go to the Linux slot only, after a backup with the right hashes; refusals (size, missing, one device for both slots, unknown slot or model, Android's slot not successful, an update waiting, from Linux) write nothing; a read-back mismatch restores and fails; the fixed list of five, NV names never allowed; the switch module's identical copy; android-install.sh's block, the plan line, the installers' wiring
test_magisk_switch.py android/magisk/mu300-linux-switch/switch.sh: the block goes to the slot Android is not on, with the CRC the bootloader checks; refuses a copy of Android's boot image
test_android_boot_image.py tools/android-boot-image.sh: the pieces of the boot image only the device can make (the misc blocks, Android's files, the device segment), compared with boot/build-boot-image.py on the same inputs
fakedevice.py not a test: the fake F50 the Magisk tests run on (block devices as files, a sysfs tree, stubs for Android's tools and a fake mount table)
test_mu300cell.py mu300cell.sh (the OpenWrt netifd protocol), sourced with the netifd functions, ip, mobile-data stubbed: the APN credentials in its environment only (FINDINGS 65; MobileDataContext: mobile-data's define_context sourced, the commands for both cards, the password on mu300-at's stdin and nowhere else), external updates, the v4 address installed by the script, v6 flush, teardown, sleep 20 after an attach failure, DATA_ROAMING and a retry after 60 s for a dial held for roaming, the extendprefix interface; relay mode (K30, K35-K37, K64): the monitor mu300cell-v6.sh, ndp-learn, init.d/mu300-ndp, 91-mu300-luci, mobile-data's v6_relay_ra
test_atd_dash.py init.d/mu300-atd-dash (K19): two procd instances on nr6/nr7 with their own MU300_AT_DIR and no URC channel, START 19, mode 100755, enabled only in the luci block of build-rootfs.sh; the panel's collector tries /run/mu300-at6, at7, then nr1
test_early_dhcp.py the USB host's early DHCP lease from boot/init into the system (K5, K9, K11, K13, K25-K27): OpenWrt's preinit server on the system's own LAN subnet, the LAN hook that ends it and reattaches rndis0, the first-boot defaults (the host pinned with a broadcast lease, never the router; the earlyusb zone once; rndis0 bridged only when it exists), Ubuntu's lan-start; under each shell
test_ttl.py mu300-ttl with fake uci/fw4/tc/modprobe: the nft backend (no act_pedit) turns OpenWrt's flow offloading off while a TTL is set (also at boot), back on after off, untouched without fw4 (Ubuntu); the tc backend (TtlTc) puts matchall/pedit filters on every sipa_eth*, idempotently, leaves offloading alone, falls back to nft when tc fails, and off removes both
test_zram.py mu300-zram (FINDINGS 162) on a fake /sys/block/zram0 and /proc: the defaults (half the RAM, lz4, priority 100, swappiness 100), every setting in zram.conf, a compressor the kernel lacks, bad values, switched off, already on, on/off, a failed swapoff, status; the boot wiring on every image, no second zram setup, the kernels' zram options
test_luci_i18n.py the control panel's catalogs: every po/<lang> complete and in the language table, CJK only in catalogs; the pages (the Languages page too) under Node; the Packages after an update page (Repair DNS only after its confirmation)
test_po2lmo.py tools/po2lmo.py against catalogs LuCI's own po2lmo produced (tests/fixtures/po2lmo)
test_terminal.py System > Terminal on openwrt-luci (ttyd): mu300term's one-time token (a 0600 file in a 0700 directory, at most 16, refused when ttyd runs another command), mu300-terminal-login (a root login for a token once and within its minute, every other argument refused), the image's ttyd config (the LAN address, origin check, no port of it opened on the cellular side, wan input never accepted), the ACL, the menu and the build
test_panel.py the web panel for Ubuntu (the panel extra: Cockpit and the MU300 page): mu300-update's checks of its tarball, mu300-extra install panel online (apt) and offline (--from, the release's packages, checked against SHA256SUMS), remove, link (nothing at boot while Cockpit is there; a background restore after an update), mu300-panel (LAN-only socket, info JSON with hostile names, hotspot-set with the password on stdin), the firewall keeping 9090 off the uplink, the manifest and translations, the page's JavaScript under Node (argument arrays, secrets on stdin, text never as HTML), sms json
test_api.py mu300-api, the device manager's entry point (FINDINGS 110): a request is one flat JSON object on stdin (lib/json.awk: nested values, duplicate keys, control characters, overlong requests refused), every method's field rules with hostile values, the stub tools' argument lists and stdin (secrets only on stdin or in their own 0600 file, never in an answer), Ubuntu and OpenWrt (a stand-in uci), openwrt-luci's delegation to mu300dash, the background job (its lines, busy, what cannot be cancelled, a secret's file gone); tests/web/manager.test.mjs runs the page's side against it
test_mu300dash_security.py the panel's rpcd backend mu300dash and its adapters (S1): every parameter checked against an allow-list, untrusted text only as one exact argument or on stdin, every reply JSON, the shared escaper, the ACL; the packages adapter (PackagesAdapter: the record as JSON whatever it holds, retry and repair-dns in the background, one at a time)
test_panel_resilience.py one stuck AT command must not wedge the panel (FINDINGS 40): mu300-at's lock wait in seconds on the clock even with a whole-second sleep, a holder past its own deadline ended (AtLock); the collector's deadline against a silent modem (CellDeadline); lock_get never reads the modem in the request, AT commands that scan or change the modem need a confirmation and a scan runs as a job (Backend); the calls log of this boot and the one before, never a value (OpsLog); the pages under Node: every call unbatched, backoff, the SMS watcher, the terminal's confirmation, stale readings, Channel Analysis and System Log (Pages)
test_sms_pool.py the SMS pool (K69, D11): mu300-sms and mu300-smsd keep the SIM's and the panel's messages in /etc/mu300/sms-pool, through a stub mu300-at; the panel side runs on the real mu300-sms; which parts are one long message when a sender uses a reference number again (Codec, Listing, FINDINGS 63)
test_adb.py adb over USB to Linux (FINDINGS 43, 70): the adbd patch line by line (one switch for who is let in, MU300_ADB_AUTH=open and nothing else; keys from root's files only, USB only, nothing world-writable), the pinned source, the kernel option, the images and the release; mu300-adbd on a fake gadget (joins as f3 and leaves the gadget as it was, RNDIS keeps its MS OS descriptors, binds again after FunctionFS unbound it, an adbd that is not ready never costs the network, the host role left alone); on by default and open; who is let in for every state of /etc/mu300/adb and adb_auth (a device set up for keys stays so; a state that is empty, cut short, unreadable, a symlink or writable by others is never open; keys mode without a key starts adbd with keys); mu300-usb adb (on/off, `auth open
test_usb_management.py the panel's USB management (device-usb, K7, K8, D12): role switch, host mode, NIC reattachment, the USB network mode file boot/init applies on the next boot
test_traffic.py mu300-traffic (the mobile data count): the first reading is a base, a reboot, a re-created interface or a lower counter counts the new counters once, another interface is only a base; midnight splits by time in local days, a clock jump does not stretch an interval, a DST change keeps every byte; bytes wait for NTP and are dated by uptime (an earlier boot's go to the day NTP comes); billing cycles (reset day 31, February, leap years), used and clear; the cap's warning and the cut (once per cycle, again after a reboot, a hand-made override kept, restored at the next cycle or a higher cap; OpenWrt and Ubuntu); the service's save at SIGTERM, one instance, a stale lock
test_wifi_channels.py the hotspot never on a DFS channel (FINDINGS 42): lib/wifi-channels.sh (the country table, a DFS channel replaced with one line why, auto, widths), hotspot-start's hostapd configuration (stub iw), openwrt-wifi-config and mu300-wifi-band on OpenWrt (stub uci), how the build applies openwrt/patches/wifi-scripts-no-dfs.patch; with MU300_WRT_IMAGE (an OpenWrt 25.12 arm64 docker image, e.g. mu300-openwrt-base:25.12.5) the patched wifi-scripts of the feed and the hostapd configuration they generate for a fake wiphy
test_wpa2_only.py the U30 Air firmware SAE offload is disabled in every layer, the hotspot WPA2-PSK only (FINDINGS 80): the driver's strip of the firmware PMK record compiled from common/report.c (records anywhere, malformed lists, random input; UBSan with MU300_TEST_UBSAN=1) and the same function in the 5.4 patch, the vendor command refused, the driver sources without the key and payload dumps; no hostapd import built and MU300_SAE_APK_DIR refused; openwrt/patches/wifi-scripts-wpa2-only.patch (with MU300_WRT_IMAGE: the feed's wifi-scripts start WPA2 and refuse sae, sae-mixed, sae-compat, psk3 and the offload option); openwrt-wifi-wpa2-only migrate (stub uci: WPA2-PSK (CCMP) with the same password, off and never open without a usable one, a change that did not stick reported, one log line, the notice, nothing without SAE); the LuCI notice module under Node (en/tr/zh, dismissal); hotspot-start refusing WPA3 in hotspot.conf
test_wifi.py wifi-start loads the WCN modules without modules.dep (K55); mu300-hw restarts the AP once the country is live (K15)
test_early_replay_hook.py the early hook that replays the LuCI plugin's saved locks before the radio comes on (K65): its place in mobile-data
test_unisoc_plugin.py the plugin's portable adapter boundary (K81): the custom AT backend contract, --available sends nothing, boot-replay (zero AT traffic when disabled, late replay, the early window), lock replay early restores every saved lock without SFUN
installer.Tests.ps1 install.ps1: T with every translation, NormalizeAnswer, Gib; the release and the beta question (ReleasePick against fake API answers); answers mode and the progress stream piece by piece (tools/answers.ps1: the file, a missing answer, a secret never shown or inherited); the graphical installer's question and the search for Python (tools/gui-launch.ps1: fake directory trees with python.cmd stubs, the Store alias, a stub winget)
answers.Tests.ps1 install.ps1 and uninstall.ps1 as a whole in answers mode against fakeadb.py, each run in a PowerShell of its own: -Check (both devices and slots, no root, a card, userdata filling the disk), -Backup, an installation with every answer, a missing one, a refused one, one on standard input; nothing written, the password in no output and not in adb's environment
test_releases.py tools/release_pick.py (which release is the newest and whether a prerelease is newer: fake API answers, drafts, the rate limit's error object, a tag that is not plain) and tools/releases.sh's release_resolve with a stub curl (asked only with a beta, never with MU300_RELEASE, the newest release when the list does not come); the release tags (Tags, ShellTags: vYYYY.MM.DD and vYYYY.MM.DD.N, docs/FINDINGS.md 125) in Python and in the sh block of tools/releases.sh, mu300-update and tools/android-install.sh against tests/fixtures/release-tags.tsv (the same table as tests/web/version.test.mjs and installer.Tests.ps1), the panel's tag expression; make-release.sh --next-tag and --check-tag with a stub gh (MakeReleaseTag)
test_smoke.py tools/smoke.py, the release smoke test (docs/RELEASING.md, FINDINGS 156), against fake boards (a fake transport for ssh, scp, ssh-keyscan and adb, a fake clock): the config (tools/smoke.example.json valid; hostile names, hosts, users, ports, fingerprints, serials, URLs, paths, apply arguments and duplicate keys refused), the SSH fingerprint as ssh-keygen -lf prints it, the identity (host key, hostname, device, system, adb serial) refused before any board is touched, Android only with allow_android (the U30 Air above all) and never a reboot whose default boot is not Linux, the before/after comparison (the release, the boot image, the kernel, services, hotspot, mobile data, the VPN's state and its files by hash: names in the report, never contents or hashes), the bounded waits for the reboot, the Magisk zip path, the dry run with no call at all, the report's lines and exit codes; the device scripts parse under each shell
test_answers.py tools/answers.sh: every question from its variable, a missing answer an error that names it, @stdin, the answers file (the installer's variables only, the user's alone, a secret never exported), the events as JSON whatever the text holds, downloads on the stream (Fetch); then install.sh and uninstall.sh as a whole against fakeadb.py (Check, Install, Uninstall): what the check reports, --backup, --adb-path, every refusal, and that nothing was written
test_gui_launch.py tools/gui-launch.sh: when the graphical installer is offered and with which default; the search for a Python with tkinter in fake trees with stub interpreters (the order of the places, Tk older than 8.6, macOS's Command Line Tools stub never run without the tools); each package tool's command; the whole offer with a yes and with a no
test_gui.py the graphical installer without its window: catalogs (Catalogs), log masking (Masking), the device list (Devices), choices, problems and answers against install.sh's defaults and variables (Model), progress and when stopping is safe (Run), the answers file and a whole run against fakeinstaller.py (Runner), the controller driving the real install.sh --check / --backup against fakeadb.py (Control); then every page of the window in three languages and both appearances (Window: needs tkinter with Tk 8.6 and a display or Xvfb, skipped otherwise)
fakeadb.py not a test: an adb that answers what the installers send to a rooted F50 or U30 Air from a description of the device, writes nothing and logs what would have been a write
fakeinstaller.py not a test: plays an installer's part on the progress stream for the graphical installer's tests (stages, downloads, the summary's question on standard input), with no device and no download

The device scripts run under dash (Ubuntu's /bin/sh), bash and busybox ash (OpenWrt); every shell test runs under each of them that is installed. Commands that touch the device (nft, ip, id, sing-box) are stubs, and the scripts read a fake / through MU300_SYSROOT, MU300_DISK and friends; mu300-update is sourced with MU300_LIB=1, which defines its functions and runs nothing.