pmaports/modem/qrtr/lookup-test.sh
Caleb Connolly bcd6fc9c32
modem/qrtr: add ci tests (MR 4420)
Add a basic test that runs qrtr-lookup and ensures that at least one QMI
service is available. This is mostly a proof of concept and can be
extended in the future.

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
2023-10-31 19:53:22 +00:00

13 lines
317 B
Bash

#!/bin/sh -e
# Automated test for qrtr-lookup
# Ensures that a DSP is running and exposes at least 1 service
qrtr-lookup | tee /tmp/qrtr-lookup.log
if [ $(wc -l /tmp/qrtr-lookup.log | cut -d' ' -f1) -gt 1 ]; then
echo "At least one QMI service is running"
exit 0
fi
echo "FAIL: No QMI service is running"
exit 1