Artifact 18a461b231131347b0175e628f4907c2fa906fc010b21009eeb3988e3d5b3711:
- File
tools/quick.sh
— part of check-in
[79385a1b35]
at
2026-11-14 11:41:21
on branch trunk
— suit install retries a load that failed, and says so until it works
When the loader fails, suit install now writes one item to the attention file: timers load: written but not loaded, with the loader's name and exit status, or could not run when it never started. suit status and suit status --line show it. Running suit install again, with the files unchanged and that item present, loads again in place of saying already installed. A success removes the item; suit uninstall removes it too. If writing the item fails as well, install still exits 3 and reports both.
make quick now rebuilds the dev binaries before it runs, so it cannot test a stale build.
49 new shell cases. 1269 unit checks, 477 shell cases, 669 store cases, 612 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (31 minutes). 100% coverage in all 23 source files. No suite has fewer cases than at the last check-in. (user: dmestas, size: 1170) [annotate] [blame] [check-ins using]
#!/bin/sh # One suite, three ways in a row, against the dev build (make quick rebuilds it first): as it is, # with USER and LOGNAME unset, and under umask 027. Prints the three summary # lines. The first thing to run after touching a suite; the full logs are # build/quick-SUITE-WAY.log. # usage: quick.sh unit|run|store|place|project set -u suite=${1:-} case $suite in unit|run|store|place|project) ;; *) echo "usage: make quick SUITE=unit|run|store|place|project" >&2; exit 2 ;; esac for f in build/dev/suit build/dev/unit; do [ -x "$f" ] || { echo "quick: $f is missing; run make first" >&2; exit 1; } done export ASAN_OPTIONS=detect_leaks=0 status=0 for way in normal nouser umask; do log=build/quick-$suite-$way.log case $way in normal) sh tools/suites.sh build/dev "$suite" ;; nouser) env -u USER -u LOGNAME sh tools/suites.sh build/dev "$suite" ;; umask) (umask 027; sh tools/suites.sh build/dev "$suite") ;; esac >"$log" 2>&1 || status=1 printf '%s: ' "$way" grep -E '^(unit: [0-9]+ checks|[a-z]+\.sh: [0-9]+ cases), [0-9]+ failed$' "$log" || { echo "no summary line ($log)"; status=1; } done exit $status