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'
24 ./test-igniters "$dev" drogue main
27 echo "Testing baro sensor"
28 ../ao-tools/ao-test-baro/ao-test-baro --tty="$dev"
31 echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
39 ../ao-tools/ao-test-flash/ao-test-flash --tty="$dev" "$FLASHSIZE"
42 echo -e '\e[31m'"$PRODUCT-$VERSION serial $serial failed"'\e[39m'
48 echo -e '\e[32m'"$PRODUCT-v$VERSION" serial "$serial" is ready to ship'\e[39m'
57 if [ $result -ne 2 ]; then
60 echo 'No device, sleeping...'