altos: Add conversion between Pa and meters
[fw/altos] / src / test / run-tests
index 11b4c95cd821ee6d9904ded30839a43539adf1bd..a8a8dc3fcea7707db64703a6475d19bde36cc55b 100755 (executable)
@@ -1,22 +1,22 @@
-#!/bin/sh
+#!/bin/bash
 
-DIR=~/src/cc1111/flights
+DIR=~/misc/rockets/flights
 
 bad_baro=0
 bad_full=0
-while read flight; do
+while read flight description; do
     if ./ao_flight_test_baro -s $DIR/$flight; then
        :
     else
-       ((bad_baro++))
+       : $((bad_baro++))
     fi
     if ./ao_flight_test -s $DIR/$flight; then
        :
     else
-       ((bad_full++))
+       : $((bad_full++))
     fi
 done < test-flights
 echo baro errors $bad_baro
 echo full errors $bad_full
-((bad = bad_baro + bad_full))
+: $((bad = bad_baro + bad_full))
 exit $bad
\ No newline at end of file