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-one | |
| 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-one')
| -rwxr-xr-x | src/test/run-one | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/test/run-one b/src/test/run-one index 7d0f95ae..8fa0787c 100755 --- a/src/test/run-one +++ b/src/test/run-one @@ -1,10 +1,20 @@ #!/bin/sh +DIR=~/misc/rockets/flights + for i in "$@"; do -./ao_flight_test "$i" > run-out.full -./ao_flight_test_baro "$i" > run-out.baro +case "$i" in + */*) + file="$i" + ;; + *) + file="$DIR/$i" + ;; +esac +./ao_flight_test "$file" > run-out.full +./ao_flight_test_baro "$file" > run-out.baro -#./ao_flight_test_accel "$i" > run-out.accel +#./ao_flight_test_accel "$file" > run-out.accel #"run-out.accel" using 1:9 with lines lt 4 axes x1y1 title "accel height",\ #"run-out.accel" using 1:11 with lines lt 4 axes x1y2 title "accel speed",\ #"run-out.accel" using 1:13 with lines lt 4 axes x1y2 title "accel accel",\ |
