| @@ -22,11 +22,9 @@ step() { printf '\n== %s\n' "$*"; } |
| 22 | 22 | sweep() { if [ "${CI:-}" = true ]; then chmod -R u+w "$1" 2>/dev/null || true; rm -rf "$1"; fi; } |
| 23 | 23 | # The compiler, as built from this checkout (debug), from any directory. |
| 24 | 24 | louise() { cargo run --quiet -p louise -- "$@"; } |
| 25 | | −# Native programs built by the tests, with AddressSanitizer and UBSan, and |
| 26 | | −# linked with a runtime built without mimalloc (ASan sees only the system |
| 27 | | −# allocator's blocks), as `spike.sh --asan` does. |
| 28 | | −asan=(LOUISE_LIB_DIR="$PWD/target/sanitize/debug" LOUISE_CC=clang |
| 29 | | − LOUISE_CFLAGS="-O1 -fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer") |
| 25 | +# The sanitizer suites of the test programs run in their own workflow |
| 26 | +# (.toboggan/workflows/asan.yml); ci.sh keeps only the quick ABI spike under |
| 27 | +# ASan+UBSan (runtime lane, when clang exists). |
| 30 | 28 | |
| 31 | 29 | # The tests compile every tests/run program several times over: with the |
| 32 | 30 | # compiler optimised, much faster than with a debug one. Debug assertions |
| @@ -188,14 +186,9 @@ if lane runtime; then |
| 188 | 186 | sweep target/spike-release |
| 189 | 187 | if command -v clang >/dev/null; then |
| 190 | 188 | step "ABI spike (ASan+UBSan)"; heavy scripts/spike.sh --asan |
| 191 | | − if [ "$full" = 1 ]; then |
| 192 | | − step "native programs (ASan+UBSan)" |
| 193 | | − heavy cargo build --quiet -p louise_rt --no-default-features --features stats,tls,crypto --target-dir target/sanitize |
| 194 | | − heavy env "${asan[@]}" cargo test --quiet -p louise_codegen_c --test native |
| 195 | | − step "C boundary: callbacks, bindings, the qsort example (ASan+UBSan)" |
| 196 | | − heavy env "${asan[@]}" cargo test --quiet -p louise --test ffi |
| 197 | | − sweep target/sanitize |
| 198 | | − fi |
| 189 | + # The sanitizer suites of the test programs live in their own workflow |
| 190 | + # (.toboggan/workflows/asan.yml): the full lane's store filled here |
| 191 | + # (run #738), so they run as their own job, as tsan.yml does. |
| 199 | 192 | else |
| 200 | 193 | echo "skipping ASan spike: clang not found" |
| 201 | 194 | fi |