Automatic component jobs need one reviewed source for path-to-board and path-to-component decisions. Keeping that policy beside the existing test buckets lets shared code classify changed tests consistently. Add the six-board selection matrix and all board-specific, cross-cutting, and explicit no-op paths. Validate the matrix while loading the manifest. Add a resolver for variable and label precedence, Git diffs, all-match component unions, full collapse, empty reasons, and report output. Exercise union routing, test classification, collapse, precedence, stand-down reasons, defensive label errors, and six-board reporting in an offline synthetic repository. Component coverage stays green. Assisted-by: codex:gpt-5.6-sol References: CI-9 Signed-off-by: Petr Štetiar <petr.stetiar@prplfoundation.org> |
||
|---|---|---|
| .. | ||
| target | ||
| check-component-coverage.py | ||
| cram_component_bucketing.py | ||
| prplmesh_ap_mld.sh | ||
| README.md | ||
| resolve-changed-components.py | ||
| resolve-component-tests.py | ||
| verify-obuspa-datamodel.sh | ||
| wifi.sh | ||
OBUSPA Test Scripts
This directory contains shared helper scripts used by cram tests.
verify-obuspa-datamodel.sh
verify-obuspa-datamodel.sh verifies
the generic and cellular OBUSPA datamodel fixtures used by:
The helper uploads
target/obuspa-datamodel-dump.sh
to the DUT, captures the filtered datamodel on the DUT itself, copies
the snapshot back to the host, and runs the comparison locally.
It supports two calling patterns:
-
Single snapshot verification
sh verify-obuspa-datamodel.sh \ --mode generic \ --expected path/to/obuspa.expected \ --actual path/to/obuspa.actual \ --diff path/to/obuspa.diff -
Before/after restart verification
sh verify-obuspa-datamodel.sh \ --mode generic \ --expected path/to/obuspa.expected \ --before-actual path/to/obuspa.before-restart.actual \ --before-diff path/to/obuspa.before-restart.diff \ --after-actual path/to/obuspa.after-restart.actual \ --after-diff path/to/obuspa.after-restart.diff
In restart mode the helper:
- captures and verifies the
beforesnapshot, - runs
service obuspa restarton the DUT, - waits 20 seconds,
- captures and verifies the
aftersnapshot.
Environment
The helper expects the same transport variables used by the cram tests:
CRAM_REMOTE_COMMANDfor remote shell accessCRAM_REMOTE_COPYfor file copiesTARGET_LAN_IPif the host cannot be derived fromCRAM_REMOTE_COMMAND
CRAM_REMOTE_COPY defaults to scp when it is unset.
For local testing against Dropbear with newer OpenSSH clients, override the copy command explicitly, for example:
export CRAM_REMOTE_COPY='scp -O -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR'
On mismatches the helper prints the unified diff, saves the captured
snapshot as *.actual, and saves the diff as *.diff.