X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-bringup%2Ftest-telegps-v3;fp=ao-bringup%2Ftest-telegps-v3;h=491e7e4f1995b2e6af66c0edd705d5727c983fff;hb=12258676d2c19dfe85c3484b064b970865c2f418;hp=0000000000000000000000000000000000000000;hpb=1ab3cdedb83296a3296aeaaf1e0fa6a11800e331;p=fw%2Faltos diff --git a/ao-bringup/test-telegps-v3 b/ao-bringup/test-telegps-v3 new file mode 100755 index 00000000..491e7e4f --- /dev/null +++ b/ao-bringup/test-telegps-v3 @@ -0,0 +1,52 @@ +#!/bin/sh + +VERSION=3.0 +PRODUCT=TeleGPS +BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'` + +echo "$PRODUCT-v$VERSION Test Program" +echo "Copyright 2023 by Bdale Garbee. Released under GPL v3" +echo +echo "Expectations:" +echo "\t$PRODUCT v$VERSION powered from USB" +echo + +ret=1 +ao-list | while read product serial dev; do + case "$product" in + "$PRODUCT-v$VERSION") + + echo "Testing $product $serial $dev" + + FLASHSIZE=2097152 + + echo "Testing flash" + ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE" + + case $? in + 0) + ;; + *) + echo "failed" + exit 1 + esac + + echo "Testing GPS" + ../ao-tools/ao-test-gps/ao-test-gps --tty="$dev" + + case $? in + 0) + ;; + *) + echo "failed" + exit 1 + esac + + echo "$PRODUCT-v$VERSION" serial "$serial" passed functional tests + ret=0 + ;; + *) + echo "Skipping $product $serial $dev" + ;; + esac +done