diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-14 12:00:32 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-14 14:04:29 -0700 |
commit | 9a8fec1b6d8f3346f988882ffb03d7d0e45b3c81 (patch) | |
tree | 80abd54e50455d869e9ce06454bb198c11e651e4 /src/test/run-tests | |
parent | e9f6fca7cfe796cbd86ae9d8f1ebe31bba7251db (diff) |
altos: Clean up test scripts
The flight test scripts were using invalid bash syntax. Clean that up
and also switch the default flight directory to my new
~/misc/rockets/flights directory.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test/run-tests')
-rwxr-xr-x | src/test/run-tests | 10 |
1 files changed, 5 insertions, 5 deletions
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 |