Skip to content

test: improve RPMI harness and expand BASE coverage#86

Merged
avpatel merged 2 commits into
riscv-software-src:mainfrom
slingappa:slingapp_tests2
Jun 16, 2026
Merged

test: improve RPMI harness and expand BASE coverage#86
avpatel merged 2 commits into
riscv-software-src:mainfrom
slingappa:slingapp_tests2

Conversation

@slingappa

@slingappa slingappa commented May 15, 2026

Copy link
Copy Markdown
Collaborator

This PR keeps the original PR #86 history while narrowing it to the RPMI test harness and BASE service-group coverage changes.

Stack

Changes

  • Update the shared RPMI test harness so failed comparisons cause test ELF failure and make check failure.
  • Extend existing BASE coverage for:
    • ACK header validation
    • Unsupported service-group probes
    • Experimental/vendor service-group probe cases
    • Invalid BASE service ID handling

Validation

  • make LIBRPMI_TEST=y CROSS_COMPILE= && make check CROSS_COMPILE=

@slingappa slingappa requested a review from pathakraul May 15, 2026 06:43
@slingappa slingappa changed the title Expand RPMI service-group test coverage DRAFT: Expand RPMI service-group test coverage May 15, 2026
@slingappa slingappa changed the title DRAFT: Expand RPMI service-group test coverage Expand RPMI service-group test coverage May 15, 2026
@slingappa

Copy link
Copy Markdown
Collaborator Author

@avpatel @saini-ranbirs @pathakraul Please review

@slingappa

Copy link
Copy Markdown
Collaborator Author

@saini-ranbirs @avpatel @pathakraul Please review

@slingappa

Copy link
Copy Markdown
Collaborator Author

@saini-ranbirs @avpatel @pathakraul Please review

@avpatel

avpatel commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

@slingappa I tried reviewing yesterday but this is a large change set and unlike mailing list based review it is not straight forward to review each commit separately. My suggestion is that for Github based reviews please create more focused PRs and along these lines break down this PR into multiple PRs. The first PR should consist of only first two commits and subsequent PRs focused on separate service groups. Also, I think you can mark one PR to be depended on another PR.

@slingappa

Copy link
Copy Markdown
Collaborator Author

Thanks, agreed. I split the original PR into a stacked series of focused PRs.

PR #86 now contains only the test harness improvement and BASE service-group coverage commits. The remaining changes are split into separate draft PRs by service group, with each PR based on the previous branch so the dependency chain is explicit and the diffs stay focused for review.

Stack:

PR-2 through PR-11 are currently marked as draft to avoid accidental out-of-order merges, but they are available for parallel review.

@slingappa

Copy link
Copy Markdown
Collaborator Author

@avpatel please check, I've split the PR and posted them as stacked PRs, detailes are mentioned above also i those individual PRs.

Comment thread test/test_common.c Outdated
Comment thread test/test_common.c Outdated
Comment thread test/test_common.c
Subrahmanya Lingappa added 2 commits June 16, 2026 11:39
Propagate per-test mismatches into scenario return status so
make check fails when a comparison fails.

Also copy request flags into the RPMI message header, verify ACK
header identity for normal requests, and reject unexpected ACKs for
posted requests. This makes the existing tests validate protocol
behavior instead of only printing failures.

Signed-off-by: Subrahmanya Lingappa <subrahmanya.lingappa@qti.qualcomm.com>
Add BASE probe coverage for unregistered, experimental, and vendor
service group IDs, plus an invalid BASE service ID case.

This complements the existing positive BASE service tests and relies
on the shared harness ACK header checks to verify token, service group,
and service ID mirroring for normal requests.

Signed-off-by: Subrahmanya Lingappa <subrahmanya.lingappa@qti.qualcomm.com>
@slingappa slingappa requested a review from avpatel June 16, 2026 06:17
@avpatel

avpatel commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Looks good to me.

@avpatel avpatel merged commit 7e59810 into riscv-software-src:main Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants