X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftest%2Frun-tests;h=a8a8dc3fcea7707db64703a6475d19bde36cc55b;hb=29edf6d901432a1afc65900ff599c963edac5a2b;hp=11b4c95cd821ee6d9904ded30839a43539adf1bd;hpb=7d7b476564a16eda81ab3406f70a21995e1b464e;p=fw%2Faltos diff --git a/src/test/run-tests b/src/test/run-tests index 11b4c95c..a8a8dc3f 100755 --- a/src/test/run-tests +++ b/src/test/run-tests @@ -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