5 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
7 echo "$PRODUCT-v$VERSION Test Program"
8 echo "Copyright 2014 by Keith Packard. Released under GPL v2"
11 echo -e "\t$PRODUCT v$VERSION powered from USB"
15 while [ $found -eq 0 ]; do
16 (ao-list; echo END END END END) | while read product serial dev; do
21 echo -e '\e[34m'Testing $product $serial $dev'\e[39m'
26 ./test-igniters-nowait "$dev" drogue main
29 echo "Testing baro sensor"
30 ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
33 echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
41 ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
44 echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
49 echo -e '\e[32m'"$PRODUCT-v$VERSION" serial "$serial" is ready to ship'\e[39m'
58 if [ $result -ne 2 ]; then