]> git.gag.com Git - fw/altos/blob - ao-bringup/test-easytimer
doc: Update 1.9.7 release notes
[fw/altos] / ao-bringup / test-easytimer
1 #!/bin/sh
2
3 VERSION=1
4 PRODUCT=EasyTimer
5 BASE=`echo $PRODUCT | tr 'A-Z' 'a-z'`
6
7 echo "$PRODUCT-v$VERSION Test Program"
8 echo "Copyright 2020 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
21             ./test-igniters $dev 0 1
22             echo""
23
24             case $? in
25                 0)
26                     ;;
27                 *)
28                     echo "failed"
29                     exit 1
30             esac
31             echo""
32
33             echo "$PRODUCT-v$VERSION" serial "$serial" is ready to ship
34             echo "\007"
35             ret=0
36             ;;
37     esac
38 done