]> git.gag.com Git - fw/altos/blob - src/test/run-tests
altosui: Add dialogs to configure 'common' frequencies
[fw/altos] / src / test / run-tests
1 #!/bin/sh
2
3 DIR=~/src/cc1111/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