Add a CRAM test covering FEAT-105. The test consists of: - Enable all vaps - Enable power save on 2.4.GHz radio - Check the behavior of radio and vaps References: FEAT-105,PPM-3928 Signed-off-by: Houssem Dafdouf <houssem.dafdouf_ext@softathome.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| target | ||
| check-auto-job-variables.py | ||
| check-component-coverage.py | ||
| cram_component_bucketing.py | ||
| prplmesh_ap_mld.sh | ||
| README.md | ||
| resolve-changed-components.py | ||
| resolve-component-tests.py | ||
| test-phase1-selection.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.