fastrpc_test: run from /usr/bin, add domain flags, default -U 0, and beef up CI logs #152
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes the FastRPC test runner deterministic and CI-friendly:
Launch location: cd /usr/bin and run ./fastrpc_test so the adjacent linux/ assets are found consistently.
Domain selection: new --domain <0|1|2|3> and --domain-name <adsp|mdsp|sdsp|cdsp> flags, with env fallbacks (FASTRPC_DOMAIN, FASTRPC_DOMAIN_NAME). If unset, we auto-pick: CDSP(3) if present, else ADSP(0), else SDSP(2), else 3.
PD mode: default to system PD (-U 0). Opt-in to user PD with --user-pd or FASTRPC_USER_PD=1.
Safer binary pathing: refuse /bin by default (common failure case on ramdisks). Can override with ALLOW_BIN_FASTRPC=1 or --bin-dir=/bin.
Better diagnostics: log SoC info and current *dsp remoteproc state via existing helpers; capture per-iteration *.env, *.cmd, *.out, *.rc (and dmesg on failures); print the exact command with safe quoting.