Artifact 2bf97d4ed8c9c78ba56c902cd6072949917fea04f0c583af881051559641eac7:
- File
tools/filc.sh
— part of check-in
[3f905be4f2]
at
2026-11-12 21:17:36
on branch trunk
— Every branch of suit's own code is tested, and the gates that keep it so
make cover fails unless every function, line, region and branch in src/ is run by a test. Every system call goes through a wrapper in platform.c that a test build can make fail, so failed-call branches are tested too. The release binary carries none of that code, and a test checks it.
Also: ensure() for invariants, a wider warning set as errors, the clang static analyzer, a second fuzz target for the stamp reader, a replay binary for saved fuzz inputs, a release build that the speed budget now measures, and make ci for the forge's Linux runner: the suite under gcc's sanitizers, then under a pinned Fil-C.
210 unit checks and 214 shell cases. The no-change run measured 0.56 to 0.60 ms over an empty program with the release build.
The Fil-C run and the Linux build have not been run yet. They run first on the forge's runner.
Decisions recorded: the wardrobe is two repositories, libfossil is used through its C API with suit's own file writer, and where each gate runs. (user: dmestas, size: 1356) [annotate] [blame] [check-ins using]
#!/bin/sh # Builds suit with Fil-C and runs the unit tests, the shell suite and every # fuzz seed and saved corpus file under it. Fil-C runs on Linux x86_64 and # aarch64 only; elsewhere this says so and exits 0. # The toolchain is pinned by version and SHA-256 and kept in FILC_HOME # (default ~/.cache/suit-filc). Phase 2 adds a Fil-C build of zlib here. set -eu VER=0.687 case "$(uname -s)-$(uname -m)" in Linux-x86_64) ARCH=x86_64 SHA=aab538401f78a47ab261ee79afed8c6b99e1d4848e263ae159a75b03c1288da1 ;; Linux-aarch64) ARCH=aarch64 SHA=f1337799051664f93c7712141deaebe78571ae96ffcf05563d517b89440bcbc0 ;; *) echo "filc: Fil-C does not run on $(uname -s) $(uname -m); skipped"; exit 0 ;; esac H=${FILC_HOME:-$HOME/.cache/suit-filc} F=$H/filc-$VER-linux-$ARCH mkdir -p "$H" fetch() { # url sha file [ -f "$3" ] && echo "$2 $3" | sha256sum -c --quiet 2>/dev/null && return 0 wget -q -O "$3.part" "$1" echo "$2 $3.part" | sha256sum -c --quiet || { rm -f "$3.part"; echo "filc: checksum mismatch for $1" >&2; exit 1; } mv "$3.part" "$3" } if [ ! -x "$F/build/bin/clang" ]; then fetch "https://github.com/pizlonator/fil-c/releases/download/v$VER/filc-$VER-linux-$ARCH.tar.xz" "$SHA" "$H/filc.tar.xz" rm -rf "$F" && tar xJf "$H/filc.tar.xz" -C "$H" (cd "$F" && ./setup.sh >/dev/null) fi exec make filc-run FILCC="$F/build/bin/clang"