summaryrefslogtreecommitdiff
path: root/src/test/run-tests
blob: 3e0cad3cfe6489d34bcba61247725feae13ba9c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

DIR=~/src/cc1111/flights

bad_baro=0
bad_full=0
while read flight description; do
    if ./ao_flight_test_baro -s $DIR/$flight; then
	:
    else
	((bad_baro++))
    fi
    if ./ao_flight_test -s $DIR/$flight; then
	:
    else
	((bad_full++))
    fi
done < test-flights
echo baro errors $bad_baro
echo full errors $bad_full
((bad = bad_baro + bad_full))
exit $bad