You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cortex-M: build and resolve FVP test runners per target (#20048)
### Summary
The Cortex-M op tests run the .pte on a prebuilt semihosting runner, but
build_test_runner.sh wrote every target to one shared directory and the
ELF was resolved by board (corstone-300) only. A runner built for one
target could therefore be used to run another target's program, silently
producing wrong results.
Build each target's runner into a target-suffixed directory and resolve
the ELF by the test's target. The Arm Serialize/runner_utils ELF lookup
gains an optional, defaulted build_dir_suffix so existing Arm-backend
corstone tests are unaffected; CortexMSerialize passes the target's
canonical cortex-m<variant> string. A target whose runner has not been
built now fails with a clear FileNotFoundError naming the missing
directory instead of running on a mismatched binary.
### Test plan
```
./backends/cortex_m/test/build_test_runner.sh --target=cortex-m0plus
./backends/cortex_m/test/build_test_runner.sh --target=cortex-m7
```
Authored with Claude Code.
cc @digantdesai@freddan80@per@zingo@oscarandersson8218@mansnils@Sebastian-Larsson@robell
0 commit comments