diff options
| author | Bdale Garbee <bdale@gag.com> | 2012-09-12 20:01:22 -0600 |
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2012-09-12 20:01:22 -0600 |
| commit | 3b612efcd1dddc6a3d59012f7ed57754b1f798c2 (patch) | |
| tree | 18d50713491ef96c5c127a309f870efb6c33f98d /src/test/run-tests | |
| parent | e076773c1693e2a62bb828dee71c04c20dbab0a5 (diff) | |
| parent | 01eb36408d7e0e826b431fcc1d3b2deb23607e0b (diff) | |
Merge branch 'new-debian' into debian
Conflicts:
ChangeLog
debian/altos.install
debian/changelog
debian/control
debian/copyright
debian/dirs
debian/docs
debian/menu
debian/rules
src/Makefile
Diffstat (limited to 'src/test/run-tests')
| -rwxr-xr-x | src/test/run-tests | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/run-tests b/src/test/run-tests new file mode 100755 index 00000000..4edecf1a --- /dev/null +++ b/src/test/run-tests @@ -0,0 +1,27 @@ +#!/bin/bash + +DIR=~/misc/rockets/flights + +expect_baro=2 +expect_full=5 + +bad_baro=0 +bad_full=0 +while read flight description; do + if ./ao_flight_test_baro -s -i "$description" $DIR/$flight; then + : + else + : $((bad_baro++)) + fi + if ./ao_flight_test -s -i "$description" $DIR/$flight; then + : + else + : $((bad_full++)) + fi +done < test-flights +echo baro errors $bad_baro expected $expect_baro +echo full errors $bad_full expected $expect_full +: $((miss_baro = bad_baro > expect_baro ? bad_baro - expect_baro : expect_baro - bad_baro)) +: $((miss_full = bad_full > expect_full ? bad_full - expect_full : expect_full - bad_full)) +: $((miss = miss_baro + miss_full)) +exit $miss
\ No newline at end of file |
