bcd6fc9c32
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>
13 lines
317 B
Bash
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
|