Expand description
Support code for the on-device integration tests of the QMI crates on the Quectel AG35.
The tests are in the device test target. See the crate README for how to
build and run them.
ModulesΒ§
- autosleep π
- connected π
- device π
- digits π
- display π
- failure π
- model π
- print π
- restore π
- servers π
- system
- Reads the state of the system: interface addresses, processes and mounts.
MacrosΒ§
- skip
- Prints why the test canβt run and returns
Ok(())from it.
StructsΒ§
- Autosleep
Guard - Restores the autosleep setting that the guard found when it was created.
- Chain
- Formats an error and its sources as
error: source: source. - Connected
- A client whose connection runs in a task.
- Device
- An AG35 that the test has to itself.
- Guard
- Sets modem state back on every path.
- Hex
- Formats bytes as lowercase hex.
- OrNone
- Formats an optional value as the value or
none. - Outcome
- Formats the result of a step as
okor the error chain. - Revision
- The
Revline of the project version file. - Servers
- The servers of a QMI service.
EnumsΒ§
- Digits
Error - Error in a digit string.
- Failure
- Why a test failed.
- Model
- Module variant.
ConstantsΒ§
- PROJECT_
VERSION - Path of the file with the firmware revision.
- REQUEST_
TIMEOUT - Timeout of one QMI request.
TraitsΒ§
- Restore
- Modem state that a test changed and must set back.
FunctionsΒ§
- check_
iccid - Checks that an ICCID has 19 or 20 digits and a valid Luhn check digit.
- check_
imei - Checks that an IMEI has 15 digits and a valid Luhn check digit.
- check_
imsi - Checks that an IMSI has 6 to 15 digits and a plausible MCC.
- device
- Checks that the test runs as root on an AG35 and waits until no other test uses the device.
- print_
skip - Prints why a test canβt run.