altos/test: Adjust CRC error rate after FEC fix
[fw/altos] / ao-bringup / test-easymotor
1 #!/bin/sh
2
3 VERSION=2
4 PRODUCT=EasyMotor
5 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
6
7 echo "$PRODUCT-v$VERSION Test Program"
8 echo "Copyright 2021 by Bdale Garbee.  Released under GPL v3"
9 echo
10 echo "Expectations:"
11 echo "\t$PRODUCT v$VERSION powered from USB"
12 echo
13
14 ret=1
15 ao-list | while read product serial dev; do
16     case "$product" in
17         "$PRODUCT-v$VERSION")
18
19             echo "Testing $product $serial $dev"
20             echo ""
21
22             FLASHSIZE=8388608
23
24             echo "Testing flash"
25             ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
26
27             case $? in
28                 0)
29                     ;;
30                 *)
31                     echo "failed"
32                     exit 1
33             esac
34             echo""
35
36             echo "$PRODUCT-v$VERSION" serial "$serial" is ready to ship
37             ret=0
38             ;;
39     esac
40 done