Skip to content

fsx — Testing ​

How each requirement of the specification is checked, and what has been. Fixtures are trees built in a fresh temporary directory with plain file-system calls, never through the code under test.

Oracles ​

  • Content ids. The castore, NAR and git ids a copy is verified against are content addressing's, whose own oracles are Snix, Nix and git (testing); a copy's ids are also checked against fileset-explorer stats --ids over the same members, a separate caller of the same library.
  • Layouts and listings are compared with trees and listings written out by hand for each fixture.
  • The iroh source is checked against sendme send of the pinned version, a separate implementation of the provider, and against the repository's own provider, whose counters report the payload bytes it sent. A stand-in provider that corrupts a byte or a name supplies the hostile cases.
  • fsdiff is checked against fixture pairs whose differences are written by hand, and its exit statuses against diff's conventions.

Evidence ​

RequirementsStatusEvidenceGap
XA1–XA5partial (Linux x86_64)fsls and fsx ls give equal output and status (fsx.XA1.names); --filter and --filter-file select alike, both together exit 2, a query that does not parse exits 1, a missing --dst and an unknown option exit 2 (fsx.XA2.filter); the default build refuses diff with 2 (fsx.XA5.noDiff); dub describe :fsx has no UI package active, and the checked binary holds no sparkles.ui, input, shaders or text_buffer symbol and needs only libc and libgccXA4 with standard error closed is not tested; XA5's run with the bridge unset waits for M4
XA6verified (Linux x86_64)the explorer's tests, fileset_explorer.FXC5.cp and fileset_explorer.FXC5.cpLinkRoot among them, pass with cp a caller of copyCommand; dub describe :fileset-tools has no UI package active—
XS1–XS4partial (Linux x86_64)every form, a ticket-like directory, ./ before one, a file: URI with a host refused (fileset_tools.source.parseSource); hostile names refused and the label found (fileset_tools.iroh.checkNames); gitTracked() over a ticket refused, nothing written (fileset_tools.iroh.XR.copyFromPeer)XS2's .git case is not a test; the hostile names are checked on lists, not on a collection a peer serves
XC1–XC7verified (Linux x86_64)the explorer's FXC5 cases over both backends through copyCommand; a directory where a member goes refused with and without --force, nothing written, and a dry run over existing paths exiting 1 (fileset_tools.commands.XC2.directoryInTheWay); fscp copying a filter's members, refusing a second time, and a dry run listing them (fsx.XC.cp); 5343 tracked files of this repository copied over both backends—
XV1–XV6partial (Linux x86_64)records assembled into the castore id the fileset machine computes (fileset_tools.verify.castoreOfIsTheMachines); both backends in both modes verified (fileset_tools.commands.XV1.verified); a source rewritten between the passes fails the separate copy, naming the file, and passes inline (fileset_tools.commands.XV2.sourceChangedBetweenPasses); an executable bit dropped after the copy is named and the copy kept (fileset_tools.commands.XV5.mismatch); --tree-hashes prints and verifies the names evaluate gives (fileset_tools.commands.XV4.treeHashes); a copy from a peer reports the castore id the same files have locally (fileset_tools.iroh.XR.copyFromPeer); 31 files copied from sendme send have the castore, NarHash and git tree the local tree givesXV6 over cp is not a test
XL1–XL4verified (Linux x86_64)sorted, NUL-separated, long and tree listings equal hand-written ones, and --stats/--tree-hashes leave standard output unchanged (fsx.XL.ls)—
XD1–XD3verified (Linux x86_64)a fixture pair with five differences gives exactly their five lines in byte order and status 1, a source against itself 0, a missing source and a single source 2, and the filter applies to both sides (fsx.XD.nameStatus); --patch adds the unified diff (fsx.XD.patch); a local tree against a ticket fetches under 4 KiB, its names, and --patch the changed file alone (fsx.XD.againstATicket)—
XR1–XR6partial (Linux x86_64)50 files opened in under 4 KiB with their names and digests, and one fetched alone whole, the provider sending little beyond it (iroh_send.XR.receiveSpike); five of 50 copied from the bridge's own send, the provider sending them and under 4 KiB more (fileset_tools.iroh.XR.copyFromPeer); fsls and fscp over sendme send of the pinned version, opening in 2.9 KiBXR1's missing bridge, XR4's corrupt byte, XR5's raw blob and XR6's provider stopped halfway are not tests
XP1–XP3verified (Linux x86_64)callPackage of apps/fsx/package.nix against the pinned nixpkgs checkout alone, with nixpkgs' LDC 1.42.0, builds and runs the suite (7 passed, the ticket test skipped without the bridge's variable); the default closure is 70.8 MiB, fsx 5.5 MiB of it, the bridge 18.3 MiB, glibc and libgcc the rest, and Phobos is linked in; withDiff adds fsdiff, withIroh = false leaves the bridge out (52.4 MiB); the packaged fscp, no variable set, copies from sendme send through the bridge its run path names—
XP4partial (Linux x86_64, macOS arm64)on macOS 27 (arm64): base 1051, event-horizon-sys 22, event-horizon 287, iroh-send 4 (iroh_send.FXS7.sendmeReceives and iroh_send.XR.receiveSpike among them), fileset-tools 15 and fsx 8 pass, and .#fsx builds the bridge as a .dylib beside the program and runs its suite; for Windows, event-horizon-sys, fileset-tools and fsx.exe cross-compile and link for x86_64-windows-msvc in the win32 shell, vfs.nt.VFB9.pathOf among themnothing has run on Windows: Wine segfaults on any program in the environment checked, and the Windows CI leg's allowlist names neither fileset-tools nor fsx; no iroh bridge is built for Windows, so an iroh source there fails as XR1 says