chore: fix "tests/compiler//sum binary sizes" benchmark (#11444)

The bench script expected no output on stdout from `compile.sh`, which
was not always the case. Now, it separates the compilation and size
measurement steps.
This commit is contained in:
Garmelon 2025-12-01 17:20:34 +01:00 committed by GitHub
parent 5e165e358c
commit ca23ed0c17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,8 +98,9 @@
cwd: ../compiler/
cmd: |
set -eu
for f in *.lean; do ../bench/compile.sh $f > /dev/null; done
printf 'sum binary sizes: '
for f in *.lean; do ../bench/compile.sh $f; printf '%s\0' "$f.out"; done | wc -c --files0-from=- | tail -1 | cut -d' ' -f 1
for f in *.lean; do printf '%s\0' "$f.out"; done | wc -c --files0-from=- | tail -1 | cut -d' ' -f 1
max_runs: 1
runner: output
- attributes: