altos: Clean up test scripts
[fw/altos] / src / test / run-tests
1 #!/bin/bash
2
3 DIR=~/misc/rockets/flights
4
5 bad_baro=0
6 bad_full=0
7 while read flight description; do
8     if ./ao_flight_test_baro -s $DIR/$flight; then
9         :
10     else
11         : $((bad_baro++))
12     fi
13     if ./ao_flight_test -s $DIR/$flight; then
14         :
15     else
16         : $((bad_full++))
17     fi
18 done < test-flights
19 echo baro errors $bad_baro
20 echo full errors $bad_full
21 : $((bad = bad_baro + bad_full))
22 exit $bad