makepad/apps/code/agent/tests/fixtures/yield_probe.sh
Admin 922a61736d apps: Code, Translator, Weather, Amp and the rest
Makepad Code (editor layout, selection, sidebar, early yield), the EN/ZH
Translator with voice, Weather with a generated offline forecast, Amp
playing its offline library, and fixes
across the other apps and examples.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 12:26:21 +02:00

25 lines
750 B
Bash
Executable file

#!/bin/sh
# A build that fails early and keeps going: a few lines, a rustc-style
# error at 2 s, then more output once a second until it exits 1 at 22 s.
# Used to measure when run_command's result reaches the model.
echo " Compiling probe-a v0.1.0 (/ws/probe-a)"
echo " Compiling probe-b v0.1.0 (/ws/probe-b)"
sleep 2
cat <<'ERR'
error[E0308]: mismatched types
--> src/main.rs:3:14
|
3 | let x: u32 = "five";
| --- ^^^^^^ expected `u32`, found `&str`
| |
| expected due to this
ERR
i=0
while [ $i -lt 20 ]; do
sleep 1
i=$((i + 1))
echo " Compiling probe-c$i v0.1.0 (/ws/probe-c$i)"
done
echo "error: could not compile \`probe\` (bin \"probe\") due to 1 previous error"
exit 1