Artifact 7b2ead62f47a9bdadd1153a0fdcca80a090ca20fd7123ed736c352164786a015:
- File
test/release_clean.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: 767) [annotate] [blame] [check-ins using]
#!/bin/sh # The release binary has no fault-injection code: neither the SUIT_FAULT # variable name nor the wrapper-name table may appear in it. The test build # must, or this check proves nothing. # usage: release_clean.sh RELEASE_BINARY TEST_BINARY set -eu release=${1:?usage: release_clean.sh RELEASE_BINARY TEST_BINARY} dev=${2:?usage: release_clean.sh RELEASE_BINARY TEST_BINARY} for needle in SUIT_FAULT self_path; do strings -a "$dev" | grep -q "$needle" || { echo "release_clean: test binary lacks '$needle'; the check is blind"; exit 1; } if strings -a "$release" | grep -q "$needle"; then echo "release_clean: FAIL release binary contains '$needle'" exit 1 fi done echo "release_clean: ok, no fault-injection strings in $release"