X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Ftest%2Frun-tests;h=a8a8dc3fcea7707db64703a6475d19bde36cc55b;hb=74f6a1a8c8fa9d5bb8d74c99782310b431dd4727;hp=3e0cad3cfe6489d34bcba61247725feae13ba9c9;hpb=43a94380032300a2e33e1faa1efe93e858e0a2cf;p=fw%2Faltos diff --git a/src/test/run-tests b/src/test/run-tests index 3e0cad3c..a8a8dc3f 100755 --- a/src/test/run-tests +++ b/src/test/run-tests @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -DIR=~/src/cc1111/flights +DIR=~/misc/rockets/flights bad_baro=0 bad_full=0 @@ -8,15 +8,15 @@ 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