# sosie: storage and network/SSH > rv64ima emulator in machin that boots Linux (native, Node, browser). All of / can be saved in > the browser; machines in tabs of one browser can SSH into each other. No internet. Live demo: https://sosie.intrane.fr/ (source of Linux and BusyBox: /licenses.html). The source code is NOT public yet; the public repository holds only these pages. Paths and commands below apply to the private source. Pages: index.html, storage.html, network.html, testing.html (full guide; read it before testing). ## Rules - SKIPPED is NOT a pass: without build/linux/ several tests print SKIPPED and exit 0. Pass = exit 0 AND the success text AND no SKIPPED (also: grep -l SKIPPED build/quick/*.out). - One test command at a time: timeout --kill-after=2 28 COMMAND. A time-out is no result. - Never run tests/run.sh as a quick check (many minutes). Give tests/browser.py a browser AND --page. - Check that ./build.sh succeeded, or tests run old binaries. - Report what ran, with success lines, and what did not. Never publish or push without approval. ## Needs (see testing.html for the check script) go zig cc python3 node git e2fsprogs squashfs-tools google-chrome; tools/toolchain.sh /path/to/machin; vendor/riscv-tests at 1b3f8bd665d79e5985753a558dae4e3718e2edc8; build/linux/{Image,initramfs.cpio,busybox.stripped,dropbearmulti,LICENSE.dropbear} (linux/README.md). ## Order ./build.sh web timeout 30 tests/quick.sh # 'quick checks passed' ## Device, bare metal, native tests/machine/blk.py expect: disk tests passed tests/machine/net.py expect: network card tests passed ## Browser logic, Node only node tests/disk-cache.mjs expect: disk cache tests passed node tests/disk-pin.mjs expect: disk pin tests passed node tests/disk-save.mjs expect: save-now tests passed ## Linux, native and Node tests/linux/disk.py expect: linux disk tests passed: rw failing crash tests/linux/disk.py --wasm expect: linux disk tests passed: rw failing tests/linux/layers.py expect: layer tests passed: keep broken tests/linux/layers.py keep --wasm expect: layer tests passed: keep (wasm) tests/linux/net.py expect: two machines passed python3 -u tests/linux/ssh.py login expect: ssh between two machines passed: login python3 -u tests/linux/ssh.py session expect: ssh between two machines passed: session ## Headless Chrome (after ./build.sh web) python3 tests/browser.py chrome --page=linux-selftest.html expect: chrome linux-selftest.html: ok python3 tests/browser.py chrome "--page=disk-selftest.html?kills=2" expect: 0 failures node tests/linux-page.mjs kill expect: ui test passed node tests/linux-page.mjs reload expect: ui test passed node tests/linux-page.mjs savenow expect: ui test passed node tests/linux-page.mjs layers expect: ui test passed node tests/linux-page.mjs update expect: ui test passed node tests/linux-tabs.mjs expect: tabs test passed ## Cleanup after a time-out pkill -f "[u]ser-data-dir=$PWD/build/profile-" pkill -f "[w]asm/run.mjs build/sosie-mfl.wasm" # also from other checkouts then ./build.sh web again if a linux-page.mjs run was interrupted. ## SSH by hand Two tabs of linux.html?safe=1&net=1, Boot both. Tab 2: passwd; dropbear -R. Tab 1: ssh root@10.0.0.2